8.5.8.9. pymodaq_gui.utils.shared_ui module

class pymodaq_gui.utils.shared_ui.MenuToolbarNames(*values)[source]

Bases: StrEnum

FILE = 'file'
HELP = 'help'
RUNTIME = 'runtime'
SETTINGS = 'settings'
TOOLBARS = 'toolbars'
TOOLS = 'tools'
VIEW = 'view'
class pymodaq_gui.utils.shared_ui.PymodaqUpdateTableWidget[source]

Bases: QTableWidget

A class to represent PyMoDAQ and its subpackages available updates as a table.

Methods

setHorizontalHeaderLabels(self, labels)

sizeHint()

append_row

append_row(package, current_version, available_version)[source]
setHorizontalHeaderLabels(self, labels: Iterable[str | None])[source]
sizeHint()[source]
class pymodaq_gui.utils.shared_ui.SharedUI(widget, show=True, title=None)[source]

Bases: CustomApp

This class is a UI wrapper that incorporates all base functionalities one want in a main PyMoDAQ app including default menu and toolbar with settings, log, help… shortcuts

Methods

affect_application(app)

Affect the given application to this SharedUI and add the App QMenus to the QMainWindow menubar reordering/merging them if necessary

connect_things()

quit_fun()

Quit the current instance of DashBoard and close on cascade move and detector modules.

setup_actions()

setup_docks_and_widgets()

setup_menus_and_toolbars([menubar])

Create the menubar object and toolbars:

check_update

hide

restart_fun

show

show_about

show_config

show_help

show_log

affect_application(app)[source]

Affect the given application to this SharedUI and add the App QMenus to the QMainWindow menubar reordering/merging them if necessary

check_update(show=True)[source]
connect_things()[source]
hide()[source]
quit_fun()[source]

Quit the current instance of DashBoard and close on cascade move and detector modules.

See also

quit_fun

restart_fun(ask=False)[source]
setup_actions()[source]
setup_docks_and_widgets()[source]
setup_menus_and_toolbars(menubar=None)[source]

Create the menubar object and toolbars:

show(show=True)[source]
show_about()[source]
show_config(config)[source]
show_help()[source]
show_log()[source]
pymodaq_gui.utils.shared_ui.main()[source]