naturtag.widgets.taxon_images module¶
Image widgets specifically for taxon photos
- class naturtag.widgets.taxon_images.TaxonImageWindow¶
Bases:
RemoteImageWindowDisplay taxon images in fullscreen as a separate window. Uses URLs instead of local file paths.
- display_taxon_fullscreen(taxon_photo)¶
Open window to a selected taxon image, and save other image URLs for navigation
- set_photo(photo)¶
- staticMetaObject = PySide6.QtCore.QMetaObject("TaxonImageWindow" inherits "RemoteImageWindow": )¶
- class naturtag.widgets.taxon_images.TaxonInfoCard(taxon, user_observations_count=0, delayed_load=True)¶
Bases:
InfoCardCard containing a taxon thumbnail, name, common name, and rank
- staticMetaObject = PySide6.QtCore.QMetaObject("TaxonInfoCard" inherits "InfoCard": )¶
- class naturtag.widgets.taxon_images.TaxonList(user_taxa, **kwargs)¶
Bases:
InfoCardListA scrollable list of TaxonInfoCards
- add_or_update_taxon(taxon, idx=0)¶
Move a card to the specified position, and add a new one if it doesn’t exist. Return True if a new card was added.
- Return type:
Optional[TaxonInfoCard]
- add_taxon(taxon, idx=None)¶
Add a card immediately, and load its thumbnail from a separate thread
- Return type:
- set_taxa(taxa)¶
Replace all existing cards with new ones for the specified taxa
- staticMetaObject = PySide6.QtCore.QMetaObject("TaxonList" inherits "InfoCardList": )¶
- class naturtag.widgets.taxon_images.TaxonPhoto(taxon=None, **kwargs)¶
Bases:
HoverPhotoA photo with a taxon reference and hover effect
- staticMetaObject = PySide6.QtCore.QMetaObject("TaxonPhoto" inherits "HoverPhoto": )¶