本文整理匯總了Python中wx.LI_VERTICAL屬性的典型用法代碼示例。如果您正苦於以下問題:Python wx.LI_VERTICAL屬性的具體用法?Python wx.LI_VERTICAL怎麽用?Python wx.LI_VERTICAL使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類wx
的用法示例。
在下文中一共展示了wx.LI_VERTICAL屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: vertical_rule
# 需要導入模塊: import wx [as 別名]
# 或者: from wx import LI_VERTICAL [as 別名]
def vertical_rule(parent):
return _rule(parent, wx.LI_VERTICAL)
示例2: create_bottom_butts
# 需要導入模塊: import wx [as 別名]
# 或者: from wx import LI_VERTICAL [as 別名]
def create_bottom_butts(self):
"""Create sizer for bottom row buttons."""
self.sizer_buttons = wx.BoxSizer(wx.HORIZONTAL)
self.button_align_test = wx.Button(self, label="Align test")
self.button_test_pick = wx.Button(self, label="Pick image")
self.button_test_imag = wx.Button(self, label="Test image")
self.button_ok = wx.Button(self, label="OK")
self.button_cancel = wx.Button(self, label="Close")
self.button_align_test.Bind(wx.EVT_BUTTON, self.onAlignTest)
self.button_test_pick.Bind(wx.EVT_BUTTON, self.onChooseTestImage)
self.button_test_imag.Bind(wx.EVT_BUTTON, self.onTestWallpaper)
self.button_ok.Bind(wx.EVT_BUTTON, self.onOk)
self.button_cancel.Bind(wx.EVT_BUTTON, self.onCancel)
self.sizer_buttons.Add(self.button_align_test, 0, wx.CENTER|wx.ALL, 5)
sline = wx.StaticLine(self, -1, style=wx.LI_VERTICAL)
self.sizer_buttons.Add(sline, 0, wx.EXPAND|wx.ALL, 5)
self.tc_testimage = wx.TextCtrl(self, -1, size=(self.tc_width, -1))
self.sizer_buttons.Add(self.tc_testimage, 0, wx.CENTER|wx.ALL, 5)
self.sizer_buttons.Add(self.button_test_pick, 0, wx.CENTER|wx.ALL, 5)
self.sizer_buttons.Add(self.button_test_imag, 0, wx.CENTER|wx.ALL, 5)
self.sizer_buttons.AddStretchSpacer()
self.sizer_buttons.Add(self.button_ok, 0, wx.CENTER|wx.ALL, 5)
self.sizer_buttons.Add(self.button_cancel, 0, wx.CENTER|wx.ALL, 5)
示例3: vertical_rule
# 需要導入模塊: import wx [as 別名]
# 或者: from wx import LI_VERTICAL [as 別名]
def vertical_rule(parent):
return _rule(parent, wx.LI_VERTICAL)