naturtag.widgets.taxon_images module#

Image widgets specifically for taxon photos

class naturtag.widgets.taxon_images.FullscreenTaxonPhoto(*args, **kwargs)#

Bases: naturtag.widgets.images.NavButtonsMixin, naturtag.widgets.taxon_images.TaxonPhoto

staticMetaObject = PySide6.QtCore.QMetaObject("FullscreenTaxonPhoto" inherits "TaxonPhoto": )#
class naturtag.widgets.taxon_images.HoverTaxonPhoto(*args, taxon=None, idx=0, **kwargs)#

Bases: naturtag.widgets.images.HoverMixin, naturtag.widgets.taxon_images.TaxonPhoto

staticMetaObject = PySide6.QtCore.QMetaObject("HoverTaxonPhoto" inherits "TaxonPhoto": )#
class naturtag.widgets.taxon_images.TaxonImageWindow#

Bases: naturtag.widgets.images.ImageWindow

display_taxon(taxon_image)#

Open window to a selected taxon image, and save other taxon image URLs for navigation

property idx: int#

The index of the currently selected image

Return type

int

remove_image()#

Remove the current image from the list

select_image_idx(idx)#

Select an image by index

set_photo(photo)#
staticMetaObject = PySide6.QtCore.QMetaObject("TaxonImageWindow" inherits "ImageWindow": )#
class naturtag.widgets.taxon_images.TaxonInfoCard(taxon, delayed_load=True)#

Bases: naturtag.widgets.layouts.StylableWidget

enterEvent(self, event: PySide6.QtGui.QEnterEvent) None#
leaveEvent(self, event: PySide6.QtCore.QEvent) None#
mousePressEvent(_)#

Placeholder to accept mouse press events

mouseReleaseEvent(self, event: PySide6.QtGui.QMouseEvent) None#
on_click#
staticMetaObject = PySide6.QtCore.QMetaObject("TaxonInfoCard" inherits "StylableWidget": Methods:   #34 type=Signal, signature=on_click(int), parameters=int )#
class naturtag.widgets.taxon_images.TaxonList(threadpool, parent=None)#

Bases: naturtag.widgets.layouts.StylableWidget

add_or_update(taxon, idx=0)#

Move a taxon card to the specified position, and add a new one if it doesn’t exist

add_taxon(taxon, idx=None)#

Add a taxon card immediately, and load its thumbnail from a separate thread

clear()#
contains(taxon_id)#
Return type

bool

get_card_by_id(taxon_id)#
Return type

Optional[TaxonInfoCard]

move_card(taxon_id, idx=0)#

Move a card to the specified position, if found; return False otherwise

Return type

bool

set_taxa(taxa)#
staticMetaObject = PySide6.QtCore.QMetaObject("TaxonList" inherits "StylableWidget": )#
property taxa: Iterator[naturtag.widgets.taxon_images.TaxonInfoCard]#
Return type

Iterator[TaxonInfoCard]

class naturtag.widgets.taxon_images.TaxonPhoto(*args, taxon=None, idx=0, **kwargs)#

Bases: naturtag.widgets.images.HoverMixinBase, naturtag.widgets.images.PixmapLabel

staticMetaObject = PySide6.QtCore.QMetaObject("TaxonPhoto" inherits "PixmapLabel": )#