X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bf5d46efb26ab22575ca9bc0d0ca5d32d6b77a3..1fc25a89ac1e6c5208db24bfc0abc8666b791dc6:/utils/wxPython/demo/wxRadioBox.py diff --git a/utils/wxPython/demo/wxRadioBox.py b/utils/wxPython/demo/wxRadioBox.py index e20db49a6d..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, "wxRadioBox", 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):