X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f0261a72469b57877b27a616ff790b983184df95..9bb3479c68dd8e6cde9c997f4221fc5cfc5ca110:/utils/wxPython/demo/wxRadioBox.py diff --git a/utils/wxPython/demo/wxRadioBox.py b/utils/wxPython/demo/wxRadioBox.py index 3fa4904172..0b734d23ff 100644 --- a/utils/wxPython/demo/wxRadioBox.py +++ b/utils/wxPython/demo/wxRadioBox.py @@ -7,6 +7,7 @@ class TestRadioButtons(wxPanel): def __init__(self, parent, log): self.log = log wxPanel.__init__(self, parent, -1) + #self.SetBackgroundColour(wxBLUE) sampleList = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'] @@ -14,11 +15,15 @@ class TestRadioButtons(wxPanel): rb = wxRadioBox(self, 30, "wxRadioBox", wxPoint(35, 30), wxDefaultSize, sampleList, 3, wxRA_SPECIFY_COLS) EVT_RADIOBOX(self, 30, self.EvtRadioBox) + #rb.SetBackgroundColour(wxBLUE) + rb.SetToolTip(wxToolTip("This is a ToolTip!")) + wxRadioButton(self, 32, "wxRadioButton", (235, 35)) + wxRadioButton(self, 33, "wxRadioButton", (235, 55)) - rb = wxRadioBox(self, 30, "", wxPoint(35, 120), wxDefaultSize, + rb = wxRadioBox(self, 35, "", wxPoint(35, 120), wxDefaultSize, sampleList, 3, wxRA_SPECIFY_COLS | wxNO_BORDER) - EVT_RADIOBOX(self, 30, self.EvtRadioBox) + EVT_RADIOBOX(self, 35, self.EvtRadioBox) def EvtRadioBox(self, event):