friendlypics2.misc.gui_helpers module¶
helper methods for use by GUI objects and dialogs
-
class
friendlypics2.misc.gui_helpers.GuiLogger(widget)[source]¶ Bases:
logging.HandlerCustom Python log handler that redirects output to a Qt widget
- Parameters
widget (QWidget) – text widget to redirect log output to
-
friendlypics2.misc.gui_helpers.generate_screen_id(screen)[source]¶ generates a unique identifier for a screen
-
friendlypics2.misc.gui_helpers.settings_group_context(settings, group_name)[source]¶ Context manager that starts loading settings from a specific sub-group and restores the original settings group once the context goes out of scope
Code within this context will load settings from the specified sub-group