當前位置: 首頁>>代碼示例>>Python>>正文


Python widgets.Dialog類代碼示例

本文整理匯總了Python中robotide.widgets.Dialog的典型用法代碼示例。如果您正苦於以下問題:Python Dialog類的具體用法?Python Dialog怎麽用?Python Dialog使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Dialog類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

 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)
開發者ID:HelioGuilherme66,項目名稱:RIDE,代碼行數:7,代碼來源:excludes.py

示例2: __init__

 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)
開發者ID:HelioGuilherme66,項目名稱:RIDE,代碼行數:7,代碼來源:mainframe.py

示例3: __init__

 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)
開發者ID:Acidburn0zzz,項目名稱:RIDE,代碼行數:7,代碼來源:resourcedialogs.py

示例4: __init__

 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)
開發者ID:EnochManohar,項目名稱:RIDE,代碼行數:8,代碼來源:resourcedialogs.py

示例5: __init__

 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)
開發者ID:pombredanne,項目名稱:RIDE,代碼行數:8,代碼來源:dialogsearchtests.py

示例6: __init__

 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)
開發者ID:EnochManohar,項目名稱:RIDE,代碼行數:12,代碼來源:usagesdialog.py

示例7: __init__

 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()
開發者ID:blueenergy,項目名稱:RIDE,代碼行數:17,代碼來源:editordialogs.py

示例8: __init__

 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)
開發者ID:pskpg86,項目名稱:RIDE,代碼行數:5,代碼來源:logger.py

示例9: __init__

 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)
開發者ID:dasituzi,項目名稱:RIDE,代碼行數:5,代碼來源:mainframe.py

示例10: __init__

 def __init__(self, title, content):
     Dialog.__init__(self, title)
     szr = VerticalSizer()
     szr.add_expanding(HtmlWindow(self, text=content, size=self.Size))
     self.SetSizer(szr)
開發者ID:IlfirinPL,項目名稱:RIDE,代碼行數:5,代碼來源:popupwindow.py

示例11: _init_dialog

 def _init_dialog(self, title):
     Dialog.__init__(self, title)
     return wx.BoxSizer(wx.VERTICAL)
開發者ID:HelioGuilherme66,項目名稱:RIDE,代碼行數:3,代碼來源:filedialogs.py

示例12: __init__

 def __init__(self, configs):
     Dialog.__init__(self, title='Manage Run Configurations')
     self._create_ui(configs)
開發者ID:IlfirinPL,項目名稱:RIDE,代碼行數:3,代碼來源:configmanagerui.py


注:本文中的robotide.widgets.Dialog類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。