本文整理汇总了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'))