]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxChoice.py
added comments to the makefile; added WX_CONFIG var to be able to use a different...
[wxWidgets.git] / wxPython / demo / wxChoice.py
index ceafc8be922b902f4a49f02ff405049d90993794..d92f4f8e458c058e7e1cbd2a1dd1324046e710dd 100644 (file)
@@ -15,12 +15,14 @@ class TestChoice(wxPanel):
                                wxPoint(15, 10))
 
         wxStaticText(self, -1, "Select one:", wxPoint(15, 50), wxSize(75, 20))
-        wxChoice(self, 40, (80, 50), (95, 125),
-                 choices = sampleList)
+        self.ch = wxChoice(self, 40, (80, 50), choices = sampleList)
         EVT_CHOICE(self, 40, self.EvtChoice)
 
+
     def EvtChoice(self, event):
         self.log.WriteText('EvtChoice: %s\n' % event.GetString())
+        self.ch.Append("A new item")
+
 
 #---------------------------------------------------------------------------
 
@@ -44,3 +46,13 @@ def runTest(frame, nb, log):
 overview = """\
 A choice item is used to select one of a list of strings. Unlike a listbox, only the selection is visible until the user pulls down the menu of choices.
 """
+
+
+
+
+
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])])
+