本文整理汇总了Python中Toolbox.Startup.simpleAppStartup方法的典型用法代码示例。如果您正苦于以下问题:Python Startup.simpleAppStartup方法的具体用法?Python Startup.simpleAppStartup怎么用?Python Startup.simpleAppStartup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Toolbox.Startup
的用法示例。
在下文中一共展示了Startup.simpleAppStartup方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [
("--config=configDir",
"use the given directory as the one containing the config files"),
("--search=word", "search for the given word"),
("--settings=settingsDir",
"use the given directory to store the settings files"),
]
appinfo = AppInfo.makeAppInfo(sys.argv,
"eric6 Web Browser",
"file",
"web browser",
options)
if not Globals.checkBlacklistedVersions():
sys.exit(100)
res = Startup.simpleAppStartup(sys.argv,
appinfo,
createMainWidget,
installErrorHandler=True)
sys.exit(res)
示例2: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [
("--config=configDir",
"use the given directory as the one containing the config files"),
("--settings=settingsDir",
"use the given directory to store the settings files"),
]
appinfo = AppInfo.makeAppInfo(sys.argv,
"Eric6 TR Previewer",
"file",
"TR file previewer",
options)
# set the library paths for plugins
Startup.setLibraryPaths()
app = E5Application(sys.argv)
client = TRSingleApplicationClient()
res = client.connect()
if res > 0:
if len(sys.argv) > 1:
client.processArgs(sys.argv[1:])
sys.exit(0)
elif res < 0:
print("eric6_trpreviewer: {0}".format(client.errstr()))
sys.exit(res)
else:
res = Startup.simpleAppStartup(sys.argv,
appinfo,
createMainWidget,
app=app)
sys.exit(res)
示例3: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [("--config=configDir", "use the given directory as the one containing the config files")]
appinfo = AppInfo.makeAppInfo(sys.argv, "Eric6 Unittest", "file", "Graphical unit test application", options)
res = Startup.simpleAppStartup(sys.argv, appinfo, createMainWidget)
sys.exit(res)
示例4: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [("--config=configDir", "use the given directory as the one containing the config files")]
appinfo = AppInfo.makeAppInfo(sys.argv, "Eric6 Snap", "", "Simple utility to do snapshots of the screen.", options)
res = Startup.simpleAppStartup(sys.argv, appinfo, createMainWidget)
sys.exit(res)
示例5: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [
("--config=configDir", "use the given directory as the one containing the config files"),
("--settings=settingsDir", "use the given directory to store the settings files"),
]
appinfo = AppInfo.makeAppInfo(
sys.argv, "Eric6 QRegularExpression", "", "Regexp editor for Qt's QRegularExpression class", options
)
res = Startup.simpleAppStartup(sys.argv, appinfo, createMainWidget)
sys.exit(res)
示例6: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [("--config=configDir", "use the given directory as the one containing the config files")]
appinfo = AppInfo.makeAppInfo(
sys.argv,
"Eric6 Plugin Repository",
"",
"Utility to show the contents of the eric6" " Plugin repository.",
options,
)
res = Startup.simpleAppStartup(sys.argv, appinfo, createMainWidget)
sys.exit(res)
示例7: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [
("--config=configDir",
"use the given directory as the one containing the config files"),
]
appinfo = AppInfo.makeAppInfo(sys.argv,
"Eric6 SQL Browser",
"connection",
"SQL browser",
options)
res = Startup.simpleAppStartup(sys.argv,
appinfo,
createMainWidget)
sys.exit(res)
示例8: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [
("--config=configDir",
"use the given directory as the one containing the config files"),
]
appinfo = AppInfo.makeAppInfo(sys.argv,
"Eric6 Compare",
"",
"Simple graphical compare tool",
options)
res = Startup.simpleAppStartup(sys.argv,
appinfo,
createMainWidget)
sys.exit(res)
示例9: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [
("--config=configDir",
"use the given directory as the one containing the config files"),
("", "name of file to edit")
]
appinfo = AppInfo.makeAppInfo(sys.argv,
"Eric6 Icon Editor",
"",
"Little tool to edit icon files.",
options)
res = Startup.simpleAppStartup(sys.argv,
appinfo,
createMainWidget)
sys.exit(res)
示例10: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [
("--config=configDir",
"use the given directory as the one containing the config files"),
("--settings=settingsDir",
"use the given directory to store the settings files"),
]
appinfo = AppInfo.makeAppInfo(sys.argv,
"Eric6 UI Previewer",
"file",
"UI file previewer",
options)
res = Startup.simpleAppStartup(sys.argv,
appinfo,
createMainWidget)
sys.exit(res)
示例11: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [
("--config=configDir",
"use the given directory as the one containing the config files"),
]
appinfo = AppInfo.makeAppInfo(sys.argv,
"Eric6 Tray",
"",
"Traystarter for eric6",
options)
res = Startup.simpleAppStartup(sys.argv,
appinfo,
createMainWidget,
quitOnLastWindowClosed=False,
raiseIt=False)
sys.exit(res)
示例12: main
# 需要导入模块: from Toolbox import Startup [as 别名]
# 或者: from Toolbox.Startup import simpleAppStartup [as 别名]
def main():
"""
Main entry point into the application.
"""
options = [
("--config=configDir",
"use the given directory as the one containing the config files"),
("--settings=settingsDir",
"use the given directory to store the settings files"),
("", "name of file to edit")
]
appinfo = AppInfo.makeAppInfo(sys.argv,
"Eric6 Editor",
"",
"Simplified version of the eric6 editor",
options)
res = Startup.simpleAppStartup(sys.argv,
appinfo,
createMainWidget)
sys.exit(res)