Sirius HLA

siriushla.sirius_application module

Definition of the Sirius Application class.

class siriushla.sirius_application.SiriusApplication(ui_file=None, command_line_args=[], use_main_window=False, **kwargs)[source]

Bases: PyDMApplication

Derivation of PyDMApplication used in Sirius HLA.

open_window(w_class, parent=None, **kwargs)[source]

Open new window.

A new window will be created if it is not already open. Otherwise, the existing window is brought to focus.

siriushla.sirius_application.excepthook(exctype, excvalue, tracebackobj)[source]

Global function to catch unhandled exceptions.

@param exctype exception type @param excvalue exception value @param tracebackobj traceback object

siriushla.util module

Util module.

class siriushla.util.LoadingDialog(parent, title, message)[source]

Bases: QDialog

class siriushla.util.LoadingThread(parent=None, cmd='', is_pydm=False)[source]

Bases: QThread

closemessage

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

openmessage

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

run(self)[source]
siriushla.util.check_process(cmd, is_window=True, is_pydm=False)[source]
siriushla.util.check_window_by_pid(pid, comm)[source]
siriushla.util.connect_newprocess(widget, cmd, is_window=True, parent=None, signal=None, is_pydm=False, **kwargs)[source]

Execute a child program in a new process.

siriushla.util.connect_window(widget, w_class, parent, signal=None, **kwargs)[source]

Connect a widget to a window.

siriushla.util.get_appropriate_color(section='SI')[source]
siriushla.util.get_appropriate_signal(widget)[source]
siriushla.util.get_monitor_icon(icon_name, color=None)[source]
siriushla.util.get_package_version()[source]
siriushla.util.get_window_id(w_class, **kwargs)[source]

Serialize parameters.

siriushla.util.run_newprocess(cmd, is_window=True, is_pydm=False, **kwargs)[source]
siriushla.util.set_style(app)[source]

Implement sirius-hla-style.css as default Qt resource file HLA.