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


Python wx.VERTICAL属性代码示例

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


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

示例1: __on_add

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def __on_add(self):
        monitor = PanelMonitor(self._panelMonitors, self)
        monitor.set_callback(self.__on_del)
        monitor.set_freqs(self._freqs)
        monitor.set_colours(self._colours)
        monitor.set_recording(self._toolbar.is_recording(),
                              time.time())
        monitor.set_dynamic(False)
        self.__add_monitor(monitor)

        self._toolbar.enable_freq(False)

        self.__set_timeline()
        self.__set_spectrum()
        self._isSaved = False
        self.__set_title()

        scroll = self._panelMonitors.GetScrollRange(wx.VERTICAL)
        self._panelMonitors.Scroll(0, scroll) 
开发者ID:EarToEarOak,项目名称:RF-Monitor,代码行数:21,代码来源:gui.py

示例2: do_layout

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def do_layout(self, parent, title, msg):
    self.panel = wx.Panel(parent)

    self.widget_pack = self.widget_class()

    self.title = self.format_title(self.panel, title)
    self.help_msg = self.format_help_msg(self.panel, msg)
    self.help_msg.SetMinSize((0, -1))
    core_widget_set = self.widget_pack.build(self.panel, {}, self.choices)

    vertical_container = wx.BoxSizer(wx.VERTICAL)

    vertical_container.Add(self.title)
    vertical_container.AddSpacer(2)

    if self.help_msg.GetLabelText():
      vertical_container.Add(self.help_msg, 1, wx.EXPAND)
      vertical_container.AddSpacer(2)
    else:
      vertical_container.AddStretchSpacer(1)

    vertical_container.Add(core_widget_set, 0, wx.EXPAND)
    self.panel.SetSizer(vertical_container)

    return self.panel 
开发者ID:ME-ICA,项目名称:me-ica,代码行数:27,代码来源:components.py

示例3: addStaticBoxWithLabels

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def addStaticBoxWithLabels(self):
        boxSizerH = wx.BoxSizer(wx.HORIZONTAL)
        staticBox = wx.StaticBox( self.panel, -1, "Labels within a Frame" )
        staticBoxSizerV = wx.StaticBoxSizer( staticBox, wx.VERTICAL )
        boxSizerV = wx.BoxSizer( wx.VERTICAL )
        staticText1 = wx.StaticText( self.panel, -1, " Choose a number:" )
        boxSizerV.Add( staticText1, 0, wx.ALL)
        staticText2 = wx.StaticText( self.panel, -1, "           Label 2")
        boxSizerV.Add( staticText2, 0, wx.ALL )
        #------------------------------------------------------
        staticBoxSizerV.Add( boxSizerV, 0, wx.ALL )
        boxSizerH.Add(staticBoxSizerV)
        #------------------------------------------------------
        boxSizerH.Add(wx.ComboBox(self.panel, size=(70, -1)))
        #------------------------------------------------------
        boxSizerH.Add(wx.SpinCtrl(self.panel, size=(50, -1), style=wx.BORDER_RAISED))             
        
        # Add local boxSizer to main frame
        self.statBoxSizerV.Add( boxSizerH, 1, wx.ALL )

    #---------------------------------------------------------- 
开发者ID:PacktPublishing,项目名称:Python-GUI-Programming-Cookbook-Second-Edition,代码行数:23,代码来源:GUI_wxPython.py

示例4: addFileWidgets

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def addFileWidgets(self):   
        boxSizerH = wx.BoxSizer(wx.HORIZONTAL)
        boxSizerH.Add(wx.Button(self.panel, label='Browse to File...'))   
        boxSizerH.Add(wx.TextCtrl( self.panel, size=(174, -1), value= "Z:\\" ))
        
        boxSizerH1 = wx.BoxSizer(wx.HORIZONTAL)
        boxSizerH1.Add(wx.Button(self.panel, label='Copy File To:    ')) 
        boxSizerH1.Add(wx.TextCtrl( self.panel, size=(174, -1), value= "Z:\\Backup" ))    
        
        boxSizerV = wx.BoxSizer(wx.VERTICAL)
        boxSizerV.Add(boxSizerH)
        boxSizerV.Add(boxSizerH1)        
        
        self.statBoxSizerMgrV.Add( boxSizerV, 1, wx.ALL )        
        
#==================================================================== 
开发者ID:PacktPublishing,项目名称:Python-GUI-Programming-Cookbook-Second-Edition,代码行数:18,代码来源:GUI_wxPython.py

示例5: do_layout

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def do_layout(self, parent):
    self.panel = wx.Panel(parent)


    self.title = self.createTitle(self.panel)
    self.help_msg = self.createHelpMsgWidget(self.panel)
    self.help_msg.SetMinSize((0, -1))
    core_widget_set = self.widget_pack.build(self.panel, self.data)

    vertical_container = wx.BoxSizer(wx.VERTICAL)

    vertical_container.Add(self.title)
    vertical_container.AddSpacer(2)

    if self.help_msg.GetLabelText():
      vertical_container.Add(self.help_msg, 1, wx.EXPAND)
      vertical_container.AddSpacer(2)
    else:
      vertical_container.AddStretchSpacer(1)

    vertical_container.Add(core_widget_set, 0, wx.EXPAND)
    self.panel.SetSizer(vertical_container)

    # self.panel.Bind(wx.EVT_SIZE, self.onResize)
    return self.panel 
开发者ID:lrq3000,项目名称:pyFileFixity,代码行数:27,代码来源:components.py

示例6: do_layout

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def do_layout(self, parent):
    self.panel = wx.Panel(parent)

    self.title = self.createTitle(self.panel)
    self.help_msg = self.createHelpMsgWidget(self.panel)
    self.help_msg.SetMinSize((0, -1))
    core_widget_set = self.widget_pack.build(self.panel, self.data)

    vertical_container = wx.BoxSizer(wx.VERTICAL)

    vertical_container.Add(self.title)
    vertical_container.AddSpacer(2)

    if self.help_msg.GetLabelText():
      vertical_container.Add(self.help_msg, 1, wx.EXPAND)
      vertical_container.AddSpacer(2)
    else:
      vertical_container.AddStretchSpacer(1)

    vertical_container.Add(core_widget_set, 0, wx.EXPAND)
    self.panel.SetSizer(vertical_container)

    self.panel.Bind(wx.EVT_SIZE, self.onResize)
    return self.panel 
开发者ID:lrq3000,项目名称:pyFileFixity,代码行数:26,代码来源:components2.py

示例7: arrange

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def arrange(self, *args, **kwargs):
        title = getin(self.widgetInfo, ['options', 'title'], _('choose_one'))
        if getin(self.widgetInfo, ['options', 'show_border'], False):
            boxDetails = wx.StaticBox(self, -1, title)
            boxSizer = wx.StaticBoxSizer(boxDetails, wx.VERTICAL)
        else:
            title = wx_util.h1(self, title)
            title.SetForegroundColour(self._options['label_color'])
            boxSizer = wx.BoxSizer(wx.VERTICAL)
            boxSizer.AddSpacer(10)
            boxSizer.Add(title, 0)

        for btn, widget in zip(self.radioButtons, self.widgets):
            sizer = wx.BoxSizer(wx.HORIZONTAL)
            sizer.Add(btn,0, wx.RIGHT, 4)
            sizer.Add(widget, 1, wx.EXPAND)
            boxSizer.Add(sizer, 0, wx.ALL | wx.EXPAND, 5)
        self.SetSizer(boxSizer) 
开发者ID:chriskiehl,项目名称:Gooey,代码行数:20,代码来源:radio_group.py

示例8: layoutComponent

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def layoutComponent(self):
        # self.rawWidgets['contents'] = self.rawWidgets['contents'][1:2]
        self.notebook = wx.Notebook(self, style=wx.BK_DEFAULT)

        panels = [wx.Panel(self.notebook) for _ in self.rawWidgets['contents']]
        sizers = [wx.BoxSizer(wx.VERTICAL) for _ in panels]

        for group, panel, sizer in zip(self.rawWidgets['contents'], panels, sizers):
            self.makeGroup(panel, sizer, group, 0, wx.EXPAND)
            panel.SetSizer(sizer)
            panel.Layout()
            self.notebook.AddPage(panel, group['name'])
            self.notebook.Layout()


        _sizer = wx.BoxSizer(wx.VERTICAL)
        _sizer.Add(self.notebook, 1, wx.EXPAND)
        self.SetSizer(_sizer)
        self.Layout() 
开发者ID:chriskiehl,项目名称:Gooey,代码行数:21,代码来源:config.py

示例9: _set_layout

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def _set_layout(self):
        main_sizer = wx.BoxSizer(wx.VERTICAL)

        main_sizer.Add(self.notebook, 1, wx.EXPAND | wx.ALL, border=5)
        main_sizer.Add(self.separator_line, 0, wx.EXPAND)

        buttons_sizer = wx.BoxSizer(wx.HORIZONTAL)
        buttons_sizer.Add(self.reset_button)
        buttons_sizer.AddSpacer((5, -1))
        buttons_sizer.Add(self.close_button)

        main_sizer.Add(buttons_sizer, flag=wx.ALIGN_RIGHT | wx.ALL, border=5)

        self.panel.SetSizer(main_sizer)

        self.panel.Layout() 
开发者ID:MrS0m30n3,项目名称:youtube-dl-gui,代码行数:18,代码来源:optionsframe.py

示例10: _build_playlist_sizer

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def _build_playlist_sizer(self):
        playlist_box_sizer = wx.StaticBoxSizer(self.playlist_box, wx.VERTICAL)
        playlist_box_sizer.AddSpacer((-1, 10))

        border = wx.GridBagSizer(5, 40)

        border.Add(self.playlist_start_label, (0, 0), flag=wx.ALIGN_CENTER_VERTICAL)
        border.Add(self.playlist_start_spinctrl, (0, 1))

        border.Add(self.playlist_stop_label, (1, 0), flag=wx.ALIGN_CENTER_VERTICAL)
        border.Add(self.playlist_stop_spinctrl, (1, 1))

        border.Add(self.playlist_max_label, (2, 0), flag=wx.ALIGN_CENTER_VERTICAL)
        border.Add(self.playlist_max_spinctrl, (2, 1))

        playlist_box_sizer.Add(border, flag=wx.ALIGN_CENTER)

        return playlist_box_sizer 
开发者ID:MrS0m30n3,项目名称:youtube-dl-gui,代码行数:20,代码来源:optionsframe.py

示例11: _init_sizers

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def _init_sizers(self):
        self.flexGridSizer1 = wx.FlexGridSizer(cols=1, hgap=0, rows=2, vgap=10)
        self.MainSizer = wx.BoxSizer(wx.HORIZONTAL)
        self.LeftGridSizer = wx.FlexGridSizer(cols=1, hgap=0, rows=3, vgap=5)
        self.RightBoxSizer = wx.StaticBoxSizer(self.staticBox1, wx.VERTICAL)
        self.RightBoxGridSizer = wx.FlexGridSizer(cols=2, hgap=5, rows=3, vgap=10)
        
        self._init_coll_flexGridSizer1_Items(self.flexGridSizer1)
        self._init_coll_flexGridSizer1_Growables(self.flexGridSizer1)
        self._init_coll_MainSizer_Items(self.MainSizer)
        self._init_coll_LeftGridSizer_Items(self.LeftGridSizer)
        self._init_coll_LeftGridSizer_Growables(self.LeftGridSizer)
        self._init_coll_RightBoxSizer_Items(self.RightBoxSizer)
        self._init_coll_RightBoxGridSizer_Items(self.RightBoxGridSizer)
        self._init_coll_RightBoxGridSizer_Growables(self.RightBoxGridSizer)
        
        self.SetSizer(self.flexGridSizer1) 
开发者ID:jgeisler0303,项目名称:CANFestivino,代码行数:19,代码来源:commondialogs.py

示例12: InitUI

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def InitUI(self):
    pnl = wx.Panel(self)
    vbox = wx.BoxSizer(wx.VERTICAL)

    sb = wx.StaticBox(pnl, label=u'请输入员工号')
    sbs = wx.StaticBoxSizer(sb, orient=wx.VERTICAL)
    self.tcCheckin = wx.TextCtrl(pnl)
    sbs.Add(self.tcCheckin, 0, wx.ALL|wx.EXPAND, 5)
    
    pnl.SetSizer(sbs)

    hbox2 = wx.BoxSizer(wx.HORIZONTAL)
    okButton = wx.Button(self, label=u'确认')
    closeButton = wx.Button(self, label=u'取消')
    hbox2.Add(okButton)
    hbox2.Add(closeButton, flag=wx.LEFT, border=5)

    vbox.Add(pnl, 0, wx.ALL|wx.EXPAND, 5)
    vbox.Add(hbox2, 0, wx.ALIGN_CENTER|wx.TOP|wx.BOTTOM, 10)

    self.SetSizer(vbox)
    self.Layout()

    okButton.Bind(wx.EVT_BUTTON, self.OnConfirm)
    closeButton.Bind(wx.EVT_BUTTON, self.OnClose) 
开发者ID:tydesk,项目名称:tydesk,代码行数:27,代码来源:tydesk.py

示例13: Notify

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def Notify(self):      
    if hasattr(self, 'TotalMsgs') and self.TotalMsgs > 0:
      toaster = TB.ToasterBox(self, tbstyle=TB.TB_COMPLEX)
      toaster.SetPopupSize((200, 120))
      toaster.SetPopupPauseTime(4000)
      toaster.SetPopupPositionByInt(3)
      toaster.SetPopupBackgroundColour('#F2F5A9')
      
      tbpanel = toaster.GetToasterBoxWindow()
      panel = wx.Panel(tbpanel, -1)
      sizer = wx.BoxSizer(wx.VERTICAL)

      sizer.AddSpacer(10)
      st = wx.StaticText(panel, wx.ID_ANY, label= u'有新消息!')
      sizer.Add(st, 0, wx.ALIGN_CENTER|wx.ALL, 10)

      button = wx.Button(panel, wx.ID_ANY, u"点击查看")
      self.Bind(wx.EVT_BUTTON, self.OnMessages, button)
      sizer.Add(button, 0, wx.ALIGN_CENTER|wx.ALL, 10)

      panel.SetSizer(sizer)
      toaster.AddPanel(panel)
      wx.CallLater(1000, toaster.Play) 
开发者ID:tydesk,项目名称:tydesk,代码行数:25,代码来源:tydesk.py

示例14: ResetPage

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def ResetPage(self, page):
        topSizer = page.GetSizer()
        sizer = topSizer.GetChildren()[0].GetSizer()
        for w in page.GetChildren():
            sizer.Detach(w)
            if isinstance(w, ParamPage):
                if w.IsShown():
                    w.Hide()
            else:
                w.Destroy()
        topSizer.Remove(sizer)
        # Create new windows
        sizer = wx.BoxSizer(wx.VERTICAL)
        # Special case - resize html window
        if g.conf.panic:
            topSizer.Add(sizer, 1, wx.EXPAND)
        else:
            topSizer.Add(sizer, 0, wx.ALL, 5)
        return sizer 
开发者ID:andreas-p,项目名称:admin4,代码行数:21,代码来源:panel.py

示例15: __init__

# 需要导入模块: import wx [as 别名]
# 或者: from wx import VERTICAL [as 别名]
def __init__(self, parent, label, xxx):
        ParamPage.__init__(self, parent, xxx)
        box = wx.StaticBox(self, -1, label)
        box.SetFont(g.labelFont())
        topSizer = wx.StaticBoxSizer(box, wx.VERTICAL)
        sizer = wx.FlexGridSizer(len(xxx.styles), 2, 0, 1)
        sizer.AddGrowableCol(1)
        for param in xxx.styles:
            present = xxx.params.has_key(param)
            check = wx.CheckBox(self, paramIDs[param],
                               param + ':', size = (LABEL_WIDTH,-1), name = param)
            check.SetValue(present)
            control = paramDict[param](self, name = param)
            control.Enable(present)
            sizer.AddMany([ (check, 0, wx.ALIGN_CENTER_VERTICAL),
                            (control, 0, wx.ALIGN_CENTER_VERTICAL | wx.GROW) ])
            self.checks[param] = check
            self.controls[param] = control
        topSizer.Add(sizer, 1, wx.ALL | wx.EXPAND, 3)
        self.SetAutoLayout(True)
        self.SetSizer(topSizer)
        topSizer.Fit(self)
    # Set data for a cahced page 
开发者ID:andreas-p,项目名称:admin4,代码行数:25,代码来源:panel.py


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