X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf694132f1c28509a9f84377ce8d374bae4177ad..f97c9b5bf2452c73434eb548e70115ac7ca60a83:/utils/wxPython/demo/wxRadioBox.py diff --git a/utils/wxPython/demo/wxRadioBox.py b/utils/wxPython/demo/wxRadioBox.py index dbd28fd597..0b734d23ff 100644 --- a/utils/wxPython/demo/wxRadioBox.py +++ b/utils/wxPython/demo/wxRadioBox.py @@ -7,13 +7,23 @@ 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'] rb = wxRadioBox(self, 30, "wxRadioBox", wxPoint(35, 30), wxDefaultSize, - sampleList, 3, wxRA_SPECIFY_COLS | wxNO_BORDER) + 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, 35, "", wxPoint(35, 120), wxDefaultSize, + sampleList, 3, wxRA_SPECIFY_COLS | wxNO_BORDER) + EVT_RADIOBOX(self, 35, self.EvtRadioBox) def EvtRadioBox(self, event):