本文整理汇总了Python中wizard.Wizard.filesToOpen方法的典型用法代码示例。如果您正苦于以下问题:Python Wizard.filesToOpen方法的具体用法?Python Wizard.filesToOpen怎么用?Python Wizard.filesToOpen使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wizard.Wizard
的用法示例。
在下文中一共展示了Wizard.filesToOpen方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from wizard import Wizard [as 别名]
# 或者: from wizard.Wizard import filesToOpen [as 别名]
def main(argv):
path = None
first_arg = None
second_arg = None
config = None
apath = None
print("QT VERSION %s" % QT_VERSION_STR )
try:
first_arg = argv[1]
second_arg = argv[2]
except IndexError:
pass
if first_arg is not None:
if first_arg == "-c":
config = True
if second_arg is not None:
path = second_arg
else:
path = first_arg
try:
#app = QApplication(argv)
app = MyApp(argv)
QCoreApplication.setOrganizationDomain('www.trickplay.com');
QCoreApplication.setOrganizationName('Trickplay');
QCoreApplication.setApplicationName('Trickplay Debugger');
QCoreApplication.setApplicationVersion('0.0.1');
s = QProcessEnvironment.systemEnvironment().toStringList()
for item in s:
k , v = str( item ).split( "=" , 1 )
if k == 'PWD':
apath = v
apath = os.path.join(apath, os.path.dirname(str(argv[0])))
main = MainWindow(app, apath)
main.config = config
main.show()
main.raise_()
wizard = Wizard()
app.main = main
path = wizard.start(path)
if path:
settings = QSettings()
settings.setValue('path', path)
app.setActiveWindow(main)
main.start(path, wizard.filesToOpen())
main.show()
sys.exit(app.exec_())
# TODO, better way of doing this for 'clean' exit...
except KeyboardInterrupt:
exit("Exited")