]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxEditableListBox.py
.cvsignore
[wxWidgets.git] / wxPython / demo / wxEditableListBox.py
CommitLineData
7b7ac0ab
RD
1from wxPython.wx import *
2from wxPython.gizmos import *
3
4#----------------------------------------------------------------------
5
6class TestPanel(wxPanel):
7 def __init__(self, parent, log):
8 wxPanel.__init__(self, parent, -1)
9 self.log = log
10
11 self.elb = wxEditableListBox(self, -1, "List of Stuff",
12 (50,50), (250, 250))
13
14 self.elb.SetStrings(["This is a nifty ListBox widget",
15 "that is editable by the user.",
16 "",
17 "Use the buttons above to",
18 "manipulate items in the list",
19 "Or to add new ones.",
20 ])
21
22
23
24#----------------------------------------------------------------------
25
26def runTest(frame, nb, log):
27 win = TestPanel(nb, log)
28 return win
29
30
31#----------------------------------------------------------------------
32
33
34
35
36
37overview = """\
38This class provides a composite control that lets the
611dc22c 39user easily enter and edit a list of strings.
7b7ac0ab 40"""