A list box : ListBox : WxPython PYTHON TUTORIALS


PYTHON TUTORIALS » WxPython » ListBox »

 

A list box


A list box
import wx

class ListBoxFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self, None, -1'List Box Example',size=(250200))
        panel = wx.Panel(self, -1)

        sampleList = ['0''1''2''3''4']

        listBox = wx.ListBox(panel, -1(2020)(80120), sampleList, wx.LB_SINGLE)
        listBox.SetSelection(3)
                
app = wx.PySimpleApp()
ListBoxFrame().Show()
app.MainLoop()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo WxPython
» ListBox