X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/493f1553fdfd276ed9944c5f1c070ee34be13b52..a81c3c2383f9096ef5e96b708a0f1c1ffe7cc6a8:/wxPython/demo/wxRadioBox.py diff --git a/wxPython/demo/wxRadioBox.py b/wxPython/demo/wxRadioBox.py index 4b95166b21..d2ea54e1b4 100644 --- a/wxPython/demo/wxRadioBox.py +++ b/wxPython/demo/wxRadioBox.py @@ -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):