naturtag.app.app module#
Main Qt app window and entry point
- class naturtag.app.app.MainWindow(app)#
Bases:
QMainWindow
- check_username()#
If username isn’t saved, show popup dialog to prompt user to enter it
- closeEvent(_)#
Save settings before closing the app
- info(message)#
Show a message both in the status bar and in the logs
- mousePressEvent(event)#
Deselect focus from text edit fields when clicking anywhere else on the window
- open_about()#
Show an About dialog with basic app information
- open_docs()#
Open the documentation in a web browser
- reload_qss()#
Reload Qt stylesheet
- reset_db()#
Reset the database
- show_settings()#
Show the settings menu
- staticMetaObject = PySide6.QtCore.QMetaObject("MainWindow" inherits "QMainWindow": )#
- toggle_fullscreen()#
Toggle fullscreen, and change icon for toolbar fullscreen button
- Return type:
bool
- toggle_log_tab(checked=True)#
- class naturtag.app.app.NaturtagApp(*args, **kwargs)#
Bases:
QApplication
- post_init()#
- staticMetaObject = PySide6.QtCore.QMetaObject("NaturtagApp" inherits "QApplication": )#
- naturtag.app.app.main()#