]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/wxEditableListBox.py
added comments to the makefile; added WX_CONFIG var to be able to use a different...
[wxWidgets.git] / wxPython / demo / wxEditableListBox.py
... / ...
CommitLineData
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 #style=wxEL_ALLOW_NEW | wxEL_ALLOW_EDIT | wxEL_ALLOW_DELETE)
15
16 self.elb.SetStrings(["This is a nifty ListBox widget",
17 "that is editable by the user.",
18 "",
19 "Use the buttons above to",
20 "manipulate items in the list",
21 "Or to add new ones.",
22 ])
23
24
25
26#----------------------------------------------------------------------
27
28def runTest(frame, nb, log):
29 win = TestPanel(nb, log)
30 return win
31
32
33#----------------------------------------------------------------------
34
35
36
37
38
39overview = """\
40This class provides a composite control that lets the
41user easily enter and edit a list of strings.
42"""
43
44
45
46
47if __name__ == '__main__':
48 import sys,os
49 import run
50 run.main(['', os.path.basename(sys.argv[0])])
51