]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxChoice.py
First pass at adding MicroWindows support
[wxWidgets.git] / wxPython / demo / wxChoice.py
index ceafc8be922b902f4a49f02ff405049d90993794..da6fa7b2a0316f5572d6ba24dd66a5ee22a4f906 100644 (file)
@@ -15,12 +15,15 @@ class TestChoice(wxPanel):
                                wxPoint(15, 10))
 
         wxStaticText(self, -1, "Select one:", wxPoint(15, 50), wxSize(75, 20))
                                wxPoint(15, 10))
 
         wxStaticText(self, -1, "Select one:", wxPoint(15, 50), wxSize(75, 20))
-        wxChoice(self, 40, (80, 50), (95, 125),
+        self.ch = wxChoice(self, 40, (80, 50), (95, 125),
                  choices = sampleList)
         EVT_CHOICE(self, 40, self.EvtChoice)
 
                  choices = sampleList)
         EVT_CHOICE(self, 40, self.EvtChoice)
 
+
     def EvtChoice(self, event):
         self.log.WriteText('EvtChoice: %s\n' % event.GetString())
     def EvtChoice(self, event):
         self.log.WriteText('EvtChoice: %s\n' % event.GetString())
+        self.ch.Append("A new item")
+
 
 #---------------------------------------------------------------------------
 
 
 #---------------------------------------------------------------------------