SiQt.definitions.SiQtMixin

class SiQt.definitions.SiQtMixin[source]

A mixin to extend QtWidgets.QMainWindow

This class adds a few convinient functions to QtWidgets.QMainWindow to add actions and generate menus

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

add_actions(target, actions)
create_action(text[, slot, shortcut, icon, …])
menu_generator(name, label, elements) Generate menu
set_dep_flag_recursive(key, value[, sync]) Change status for a dependent field, and pull all the fields that are dependent on it.
menu_generator(name, label, elements)[source]

Generate menu

set_dep_flag_recursive(key, value, sync=False)[source]

Change status for a dependent field, and pull all the fields that are dependent on it.