本文整理汇总了Python中taurus.qt.qtgui.application.TaurusApplication.setApplicationName方法的典型用法代码示例。如果您正苦于以下问题:Python TaurusApplication.setApplicationName方法的具体用法?Python TaurusApplication.setApplicationName怎么用?Python TaurusApplication.setApplicationName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类taurus.qt.qtgui.application.TaurusApplication
的用法示例。
在下文中一共展示了TaurusApplication.setApplicationName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from taurus.qt.qtgui.application import TaurusApplication [as 别名]
# 或者: from taurus.qt.qtgui.application.TaurusApplication import setApplicationName [as 别名]
def main():
from taurus.core.util import argparse
from taurus.qt.qtgui.application import TaurusApplication
parser = argparse.get_taurus_parser()
parser.set_usage("%prog [options]")
parser.set_description("Sardana macro sequencer.\n"
"It allows the creation of sequences of "
"macros, executed one after the other.\n"
"The sequences can be stored under xml files")
parser.add_option("-f", "--file",
dest="file", default=None,
help="load an xml macro sequence file")
app = TaurusApplication(cmd_line_parser=parser,
app_name="sequencer",
app_version=sardana.Release.version)
args = app.get_command_line_args()
options = app.get_command_line_options()
app.setOrganizationName(globals.ORGANIZATION_NAME)
app.setApplicationName(globals.SEQUENCER_APPLICATION_NAME)
sequencer = createSequencer(args, options)
sequencer.show()
sys.exit(app.exec_())
示例2: main
# 需要导入模块: from taurus.qt.qtgui.application import TaurusApplication [as 别名]
# 或者: from taurus.qt.qtgui.application.TaurusApplication import setApplicationName [as 别名]
def main():
from taurus.qt.qtgui.application import TaurusApplication
import taurus
app = TaurusApplication(sys.argv, app_version=sardana.Release.version)
args = app.get_command_line_args()
app.setOrganizationName("Taurus")
app.setApplicationName("macroexecutor")
macroExecutor = createMacroExecutor(args)
macroExecutor.show()
sys.exit(app.exec_())