]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxRadioBox.py
typo fixed: should be lpthread, not -lpthread in THREAD_OPTS
[wxWidgets.git] / wxPython / demo / wxRadioBox.py
index 4b95166b21ff71059eab8e34a47a003f0722ba1a..d2ea54e1b4006062acfd9c4361453eb34339c868 100644 (file)
@@ -20,6 +20,8 @@ class TestRadioButtons(wxPanel):
 
         wxRadioButton(self, 32, "wxRadioButton", (235, 35))
         wxRadioButton(self, 33, "wxRadioButton", (235, 55))
+        EVT_RADIOBUTTON(self, 32, self.EvtRadioButton)
+        EVT_RADIOBUTTON(self, 33, self.EvtRadioButton)
 
         rb = wxRadioBox(self, 35, "", wxPoint(35, 120), wxDefaultSize,
                         sampleList, 3, wxRA_SPECIFY_COLS | wxNO_BORDER)
@@ -29,6 +31,9 @@ class TestRadioButtons(wxPanel):
     def EvtRadioBox(self, event):
         self.log.WriteText('EvtRadioBox: %d\n' % event.GetInt())
 
+    def EvtRadioButton(self, event):
+        self.log.write('EvtRadioButton:%d\n' % event.GetInt())
+
 #---------------------------------------------------------------------------
 
 def runTest(frame, nb, log):