naturtag.widgets.observation_images module

Image widgets specifically for observation photos

class naturtag.widgets.observation_images.ObservationImageWindow

Bases: ImageWindow

Display observation images in fullscreen as a separate window. Uses URLs instead of local file paths.

display_observation_fullscreen(observation_photo)

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

property idx: int

The index of the currently selected image

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("ObservationImageWindow" inherits "ImageWindow": )
class naturtag.widgets.observation_images.ObservationInfoCard(obs, delayed_load=True)

Bases: InfoCard

Card containing an observation thumbnail and basic info

staticMetaObject = PySide6.QtCore.QMetaObject("ObservationInfoCard" inherits "InfoCard": )
class naturtag.widgets.observation_images.ObservationList(*args, **kwargs)

Bases: InfoCardList

A scrollable list of ObservationInfoCards

add_observation(observation, idx=None)

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

Return type:

ObservationInfoCard

add_or_update_observation(observation, 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[ObservationInfoCard]

set_observations(observations)

Replace all existing cards with new ones for the specified observations

staticMetaObject = PySide6.QtCore.QMetaObject("ObservationList" inherits "InfoCardList": )
class naturtag.widgets.observation_images.ObservationPhoto(observation=None, **kwargs)

Bases: HoverPhoto

A photo with an observation reference and hover effect

staticMetaObject = PySide6.QtCore.QMetaObject("ObservationPhoto" inherits "HoverPhoto": )