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


Python FxStudio.getMainWindowNotebook方法代码示例

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


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

示例1: FaceFXOnDemandOutputWindow

# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getMainWindowNotebook [as 别名]
            self.SetAutoLayout(1)
            self.output = FaceFXOnDemandOutputWindow(title="output")
            sys.stdout = self.output
            sys.stderr = self.output
            FxStudio.dockInMainWindowNotebook(self, "Python")

        def onSize(self, newSize):
            self.Layout()

        # Do nothing when mouse capture is lost. This causes selection to be a little
        # weird if this happens but will not lock or crash the application or cause the
        # C++ wxWidgets code to assert.
        def onMouseCaptureLost(self, event):
            pass


old = wx.FindWindowByName('FaceFX IPython Shell')
if old == None:
    FxStudio.msg('Starting FaceFX IPython Shell...')
    FxStudio.msg('Using IPython version {0}.'.format(IPython.__version__))
    FxStudio.msg('Using wxPython version {0}.'.format(wx.__version__))
    panel = FaceFXIPythonShell(FxStudio.getMainWindowNotebook(), wx.ID_ANY, 'FaceFX IPython Shell')
    ip = IPython.ipapi.get()
    ip.ex('import ipython')
    ip.ex('ipython.magicfy_all_studio_commands()')
    ipython_log_filename = FxStudio.getDirectory('logs')
    ipython_log_filename += FxStudio.getConsoleVariable('g_applaunchtime')
    ipython_log_filename += '-ipython-log.txt'
    ip.IP.magic_logstart('-o -r -t "{0}"'.format(ipython_log_filename))
    ip.IP.magic_cd(FxStudio.getDirectory('app'))
开发者ID:e-johnson,项目名称:AndroidProject,代码行数:32,代码来源:ipython.py


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