本文整理汇总了Python中FxStudio.getMainWindow方法的典型用法代码示例。如果您正苦于以下问题:Python FxStudio.getMainWindow方法的具体用法?Python FxStudio.getMainWindow怎么用?Python FxStudio.getMainWindow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FxStudio
的用法示例。
在下文中一共展示了FxStudio.getMainWindow方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: createFrame
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getMainWindow [as 别名]
def createFrame(commandEvent):
# Passing in FxStudio.getMainWindowNotebook() as the parent does not prevent
# a crash on close if the plugin GUI was not closed first. Instead, we use
# the appshutdown callback to clean up the plugin. See the __init__ and
# __del__ functions.
dlg = removebone(FxStudio.getMainWindow())
dlg.ShowModal()
示例2: __init__
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getMainWindow [as 别名]
def __init__(self):
wx.Dialog.__init__(self, parent=FxStudio.getMainWindow(),\
title=_NOTIFICATION_DIALOG_TITLE, size=(-1, 240), style=wx.CAPTION)
self.vertical_sizer = wx.BoxSizer(orient=wx.VERTICAL)
self._NOTIFICATION_TEXT = wx.StaticText(self, label=_NOTIFICATION_TEXT)
self.vertical_sizer.AddWindow(self._NOTIFICATION_TEXT, 0, border=5,\
flag=wx.ALL | wx.EXPAND)
self.remember_selection_checkbox = wx.CheckBox(self,\
id=_REMEMBER_SELECTION_CHECKBOX_ID, label=_REMEMBER_SELECTION_LABEL)
self.vertical_sizer.AddWindow(self.remember_selection_checkbox, 0,\
border=5, flag=wx.ALL | wx.GROW)
self.static_line = wx.StaticLine(self)
self.vertical_sizer.AddWindow(self.static_line, 0, border=5,\
flag=wx.ALL | wx.EXPAND)
self.horizontal_sizer = wx.BoxSizer(orient=wx.HORIZONTAL)
self.options_button = wx.Button(self, id=_OPTIONS_BUTTON_ID,\
label='Options')
self.options_button.Bind(wx.EVT_BUTTON, self.on_options,\
id=_OPTIONS_BUTTON_ID)
self.horizontal_sizer.AddWindow(self.options_button, 0, border=5,\
flag=wx.ALL | wx.GROW)
self.horizontal_sizer.AddStretchSpacer()
self.yes_button = wx.Button(self, id=wx.ID_YES, label='Yes')
self.yes_button.Bind(wx.EVT_BUTTON, self.on_yes, id=wx.ID_YES)
self.horizontal_sizer.AddWindow(self.yes_button, 0, border=5,\
flag=wx.ALL | wx.GROW)
self.no_button = wx.Button(self, id=wx.ID_NO, label='No')
self.no_button.Bind(wx.EVT_BUTTON, self.on_no, id=wx.ID_NO)
self.horizontal_sizer.AddWindow(self.no_button, 0, border=5,\
flag=wx.ALL | wx.GROW)
self.vertical_sizer.AddWindow(self.horizontal_sizer, 0, border=5,\
flag=wx.ALL | wx.GROW)
self.SetSizer(self.vertical_sizer)
self.SetAutoLayout(True)
self.Layout()
示例3: createOutputWindow
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getMainWindow [as 别名]
def createOutputWindow(self, st):
if FxStudio.getConsoleVariableAsSwitch('py_enableoutputwindow') == True:
self.frame = wx.Frame(FxStudio.getMainWindow(), -1, self.title, self.pos, self.size,
style=wx.DEFAULT_FRAME_STYLE)
self.text = wx.TextCtrl(self.frame, -1, "", style=wx.TE_MULTILINE | wx.TE_READONLY)
self.text.SetFont(wx.Font(8, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, FxStudio.getUnicodeFontName(), wx.FONTENCODING_SYSTEM))
self.text.SetBackgroundColour(self.color_palette['BaseColour1'])
self.text.SetForegroundColour(self.color_palette['BaseColour8'])
ib = wx.IconBundle()
ib.AddIconFromFile(FxStudio.getAppIconPath(), wx.BITMAP_TYPE_ANY)
self.frame.SetIcons(ib)
self.text.AppendText(st)
self.log_to_file(st)
self.frame.Show(True)
self.frame.Bind(wx.EVT_CLOSE, self.onCloseWindow)
else:
self.log_to_file(st)
示例4: on_plugin_manager
# 需要导入模块: import FxStudio [as 别名]
# 或者: from FxStudio import getMainWindow [as 别名]
def on_plugin_manager(self, event):
global _MANAGER_UI
if not _MANAGER_UI:
_MANAGER_UI = _PluginManagerUI(FxStudio.getMainWindow())
_MANAGER_UI.ShowModal()