当前位置: 首页>>代码示例>>Python>>正文


Python CuraApplication.startSplashWindowPhase方法代码示例

本文整理汇总了Python中cura.CuraApplication.CuraApplication.startSplashWindowPhase方法的典型用法代码示例。如果您正苦于以下问题:Python CuraApplication.startSplashWindowPhase方法的具体用法?Python CuraApplication.startSplashWindowPhase怎么用?Python CuraApplication.startSplashWindowPhase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cura.CuraApplication.CuraApplication的用法示例。


在下文中一共展示了CuraApplication.startSplashWindowPhase方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: CrashHandler

# 需要导入模块: from cura.CuraApplication import CuraApplication [as 别名]
# 或者: from cura.CuraApplication.CuraApplication import startSplashWindowPhase [as 别名]
        application.removePostedEvents(None)
        _crash_handler = CrashHandler(hook_type, value, traceback, has_started)
        # This means the QtApplication could be created and so the splash screen. Then Cura closes it
        if CuraApplication.splash is not None:
            CuraApplication.splash.close()
        _crash_handler.early_crash_dialog.show()
        sys.exit(application.exec_())


# Set exception hook to use the crash dialog handler
sys.excepthook = exceptHook
# Enable dumping traceback for all threads
faulthandler.enable(all_threads = True)

# Workaround for a race condition on certain systems where there
# is a race condition between Arcus and PyQt. Importing Arcus
# first seems to prevent Sip from going into a state where it
# tries to create PyQt objects on a non-main thread.
import Arcus #@UnusedImport
from cura.CuraApplication import CuraApplication

app = CuraApplication()
app.addCommandLineOptions()
app.parseCliOptions()
app.initialize()

app.startSplashWindowPhase()
app.startPostSplashWindowPhase()

app.run()
开发者ID:Twosilly,项目名称:Cura,代码行数:32,代码来源:cura_app.py


注:本文中的cura.CuraApplication.CuraApplication.startSplashWindowPhase方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。