本文整理匯總了Python中robotide.widgets.Dialog.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python Dialog.__init__方法的具體用法?Python Dialog.__init__怎麽用?Python Dialog.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類robotide.widgets.Dialog
的用法示例。
在下文中一共展示了Dialog.__init__方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self):
Dialog.__init__(self, title='Help: excludes')
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(HtmlWindow(self, (800, 600), self.help),
1,
flag=wx.EXPAND)
self.SetSizerAndFit(sizer)
示例2: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self):
Dialog.__init__(self, title="Shortcut keys for RIDE")
sizer = wx.BoxSizer(wx.HORIZONTAL)
sizer.Add(HtmlWindow(self, (350, 400),
self._get_platform_specific_shortcut_keys()), 1,
flag=wx.EXPAND)
self.SetSizerAndFit(sizer)
示例3: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self, usages, title, checkbox_label, model=ResourceImportListModel):
Dialog.__init__(self, title, size=(self._width, self._height))
self._sizer = VerticalSizer()
self._create_controls(usages, checkbox_label, model)
self._create_horizontal_line(self._sizer)
self._create_buttons(self._sizer)
self.SetSizer(self._sizer)
示例4: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self, controller):
Dialog.__init__(self, self._title, size=(self._width, self._height))
self._controller = controller
self._sizer = VerticalSizer()
self._create_controls()
self._create_horizontal_line(self._sizer)
self._create_buttons(self._sizer)
self.SetSizer(self._sizer)
示例5: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self, fuzzy_search_handler, tag_search_handler):
self._fuzzy_search_handler = fuzzy_search_handler
self._tag_search_handler = tag_search_handler
self._selection_listeners = []
title = "Search Tests"
Dialog.__init__(self, title=title, size=(650, 400))
self.SetSizer(VerticalSizer())
self.Sizer.Add(self._create_notebook(), 1, wx.ALL | wx.EXPAND | wx.ALIGN_LEFT, 3)
示例6: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self, name, usages=None):
self._name = name
self._selection_listeners = []
title = "'%s'" % (name)
Dialog.__init__(self, title=title, size=(650, 400))
self.SetSizer(VerticalSizer())
self._add_view_components()
self.usages = usages or UsagesListModel([])
self.usage_list = VirtualList(self, self.usages.headers,
self.usages)
self.usage_list.add_selection_listener(self._usage_selected)
self.Sizer.add_expanding(self.usage_list)
示例7: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self, controller, item=None, plugin=None):
# TODO: Get rid of item, everything should be in controller
Dialog.__init__(self, self._title)
self.SetExtraStyle(wx.WS_EX_VALIDATE_RECURSIVELY)
self._controller = controller
self.plugin = plugin
self._sizer = wx.BoxSizer(wx.VERTICAL)
self._editors = self._get_editors(item)
for editor in self._editors:
self._sizer.Add(editor, editor.expand_factor, wx.EXPAND)
self._add_comment_editor(item)
self._create_help()
self._create_line()
self._create_buttons()
self.SetSizer(self._sizer)
self._sizer.Fit(self)
self._editors[0].set_focus()
示例8: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self, message):
Dialog.__init__(self, title='Parsing errors', size=(700, 400),
style=wx.DEFAULT_FRAME_STYLE)
area = wx.TextCtrl(self, size=(700,400), style=wx.TE_MULTILINE|wx.TE_DONTWRAP|wx.TE_READONLY)
area.SetValue(message)
示例9: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self):
Dialog.__init__(self, title='RIDE')
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(HtmlWindow(self, (450, 200), ABOUT_RIDE), 1, flag=wx.EXPAND)
self.SetSizerAndFit(sizer)
示例10: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self, title, content):
Dialog.__init__(self, title)
szr = VerticalSizer()
szr.add_expanding(HtmlWindow(self, text=content, size=self.Size))
self.SetSizer(szr)
示例11: _init_dialog
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def _init_dialog(self, title):
Dialog.__init__(self, title)
return wx.BoxSizer(wx.VERTICAL)
示例12: __init__
# 需要導入模塊: from robotide.widgets import Dialog [as 別名]
# 或者: from robotide.widgets.Dialog import __init__ [as 別名]
def __init__(self, configs):
Dialog.__init__(self, title='Manage Run Configurations')
self._create_ui(configs)