Two comboboxes : ComboBox : WxPython PYTHON TUTORIALS


PYTHON TUTORIALS » WxPython » ComboBox »

 

Two comboboxes


Two comboboxes
import wx

class ComboBoxFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self, None, -1'Combo Box Example', size=(350300))
        panel = wx.Panel(self, -1)
        sampleList = ['zero', 'one', 'two', 'three', 'four', 'five','six', 'seven', 'eight']
        wx.StaticText(panel, -1"Select one:"(1515))
        wx.ComboBox(panel, -1"default value"(1530), wx.DefaultSize,sampleList, wx.CB_DROPDOWN)
        wx.ComboBox(panel, -1"default value"(15030), wx.DefaultSize,sampleList, wx.CB_SIMPLE)
                        
app = wx.PySimpleApp()
ComboBoxFrame().Show()
app.MainLoop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo WxPython
» ComboBox