X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..9c97d337bfe0482fe5f80588f2ba29446293b39e:/wxPython/demo/RadioButton.py diff --git a/wxPython/demo/RadioButton.py b/wxPython/demo/RadioButton.py index ad4ee8ce7c..74b853d048 100644 --- a/wxPython/demo/RadioButton.py +++ b/wxPython/demo/RadioButton.py @@ -1,7 +1,3 @@ -# 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# import wx @@ -17,10 +13,10 @@ class TestPanel( wx.Panel ): # 1st group of controls: self.group1_ctrls = [] radio1 = wx.RadioButton( panel, -1, " Radio1 ", style = wx.RB_GROUP ) - text1 = wx.TextCtrl( panel, -1, "" ) radio2 = wx.RadioButton( panel, -1, " Radio2 " ) - text2 = wx.TextCtrl( panel, -1, "" ) radio3 = wx.RadioButton( panel, -1, " Radio3 " ) + text1 = wx.TextCtrl( panel, -1, "" ) + text2 = wx.TextCtrl( panel, -1, "" ) text3 = wx.TextCtrl( panel, -1, "" ) self.group1_ctrls.append((radio1, text1)) self.group1_ctrls.append((radio2, text2)) @@ -29,10 +25,10 @@ class TestPanel( wx.Panel ): # 2nd group of controls: self.group2_ctrls = [] radio4 = wx.RadioButton( panel, -1, " Radio1 ", style = wx.RB_GROUP ) - text4 = wx.TextCtrl( panel, -1, "" ) radio5 = wx.RadioButton( panel, -1, " Radio2 " ) - text5 = wx.TextCtrl( panel, -1, "" ) radio6 = wx.RadioButton( panel, -1, " Radio3 " ) + text4 = wx.TextCtrl( panel, -1, "" ) + text5 = wx.TextCtrl( panel, -1, "" ) text6 = wx.TextCtrl( panel, -1, "" ) self.group2_ctrls.append((radio4, text4)) self.group2_ctrls.append((radio5, text5)) @@ -114,9 +110,9 @@ overview = """\ This demo shows how individual radio buttons can be used to build more complicated selection mechanisms...

-It uses 2 groups of wxRadioButtons, where the groups are defined by -instantiation. When a wxRadioButton is created with the wxRB_GROUP -style, all subsequent wxRadioButtons created without it are implicitly +It uses 2 groups of wx.RadioButtons, where the groups are defined by +instantiation. When a wx.RadioButton is created with the wx.RB_GROUP +style, all subsequent wx.RadioButtons created without it are implicitly added to that group by the framework. """ @@ -126,5 +122,5 @@ added to that group by the framework. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])