TaurusApplication
digraph inheritance8e47e21a7e {
bgcolor=transparent;
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"Logger" [URL="taurus-Logger.html#taurus.Logger",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The taurus logger class. All taurus pertinent classes should inherit"];
"QApplication" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QApplication(List[str])"];
"QGuiApplication" -> "QApplication" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QCoreApplication" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QCoreApplication(List[str])"];
"QObject" -> "QCoreApplication" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QGuiApplication" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QGuiApplication(List[str])"];
"QCoreApplication" -> "QGuiApplication" [arrowsize=0.5,style="setlinewidth(0.5)"];
"QObject" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QObject(parent: QObject = None)"];
"wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"];
"TaurusApplication" [URL="#taurus.qt.qtgui.application.TaurusApplication",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A QApplication that performs some taurus-specific initializations"];
"QApplication" -> "TaurusApplication" [arrowsize=0.5,style="setlinewidth(0.5)"];
"Logger" -> "TaurusApplication" [arrowsize=0.5,style="setlinewidth(0.5)"];
"simplewrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"wrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded];
"simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
- class TaurusApplication(*args, **kwargs)[source]
A QApplication that performs some taurus-specific initializations and (optionally but deprecated) also parses the command line for taurus options.
- The optional keyword parameters:
app_name: (str) application name
app_version: (str) application version
org_name: (str) organization name
org_domain: (str) organization domain
cmd_line_parser (None [or DEPRECATED
optparse.OptionParser
])
If cmd_line_parser is explicitly set to None, no parsing will be done at all. If a
optparse.OptionParser
instance is passed as cmd_line_parser (deprecated), it will be used for parsing the command line arguments. If cmd_line_parser is not explicitly passed, the behaviour will depend on the value of tauruscustomsettings.IMPLICIT_OPTPARSE (which by default is False, indicating that no parsing is done).Simple example:
import sys from taurus.qt.qtgui.application import TaurusApplication import taurus.qt.qtgui.display app = TaurusApplication(cmd_line_parser=None) w = taurus.qt.qtgui.display.TaurusLabel() w.model = 'sys/tg_test/1/double_scalar' w.show() sys.exit(app.exec_())
Import from
taurus.qt.qtgui.application
as:from taurus.qt.qtgui.application import TaurusApplication
- basicConfig(log_file_name=None, maxBytes=10000000.0, backupCount=5, with_gui_exc_handler=True)[source]
- get_command_line_args()[source]
Returns the list of arguments that resulted from parsing the command line parameters.
- Returns
the command line arguments
- Return type
list of strings
- get_command_line_options()[source]
Returns the
optparse.Option
that resulted from parsing the command line parameters.- Returns
the command line options
- Return type
optparse.Option