naturtag.widgets.dialogs module

QDialogs shown by NaturtagApp

class naturtag.widgets.dialogs.ResetDbDialog(parent)

Bases: QDialog

Progress dialog shown while the database is being reset.

on_error(exc)
on_result(_)
staticMetaObject = PySide6.QtCore.QMetaObject("ResetDbDialog" inherits "QDialog": )
class naturtag.widgets.dialogs.WelcomeDialog(parent, app, observation_controller)

Bases: QDialog

Dialog shown on first app startup.

Main steps: * Input: user enters their iNaturalist username and optionally locale * Download: download observations in background and show progress bar

Closing during step 1 cancels everything. Closing during step 2 just dismisses the dialog; the download continues in the background.

showEvent(event)
staticMetaObject = PySide6.QtCore.QMetaObject("WelcomeDialog" inherits "QDialog": Methods:   #41 type=Slot, signature=_on_username_changed(QString), parameters=QString   #42 type=Slot, signature=_on_count_received(PyObject), parameters=PyObject   #43 type=Slot, signature=_on_count_error(PyObject), parameters=PyObject   #44 type=Slot, signature=_on_sync_progress(int,int), parameters=int, int   #45 type=Slot, signature=_on_sync_finished() )