Reorder the controls so the RadioButtons work right on Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,10 +13,10 @@ class TestPanel( wx.Panel ):
|
|||||||
# 1st group of controls:
|
# 1st group of controls:
|
||||||
self.group1_ctrls = []
|
self.group1_ctrls = []
|
||||||
radio1 = wx.RadioButton( panel, -1, " Radio1 ", style = wx.RB_GROUP )
|
radio1 = wx.RadioButton( panel, -1, " Radio1 ", style = wx.RB_GROUP )
|
||||||
text1 = wx.TextCtrl( panel, -1, "" )
|
|
||||||
radio2 = wx.RadioButton( panel, -1, " Radio2 " )
|
radio2 = wx.RadioButton( panel, -1, " Radio2 " )
|
||||||
text2 = wx.TextCtrl( panel, -1, "" )
|
|
||||||
radio3 = wx.RadioButton( panel, -1, " Radio3 " )
|
radio3 = wx.RadioButton( panel, -1, " Radio3 " )
|
||||||
|
text1 = wx.TextCtrl( panel, -1, "" )
|
||||||
|
text2 = wx.TextCtrl( panel, -1, "" )
|
||||||
text3 = wx.TextCtrl( panel, -1, "" )
|
text3 = wx.TextCtrl( panel, -1, "" )
|
||||||
self.group1_ctrls.append((radio1, text1))
|
self.group1_ctrls.append((radio1, text1))
|
||||||
self.group1_ctrls.append((radio2, text2))
|
self.group1_ctrls.append((radio2, text2))
|
||||||
@@ -25,10 +25,10 @@ class TestPanel( wx.Panel ):
|
|||||||
# 2nd group of controls:
|
# 2nd group of controls:
|
||||||
self.group2_ctrls = []
|
self.group2_ctrls = []
|
||||||
radio4 = wx.RadioButton( panel, -1, " Radio1 ", style = wx.RB_GROUP )
|
radio4 = wx.RadioButton( panel, -1, " Radio1 ", style = wx.RB_GROUP )
|
||||||
text4 = wx.TextCtrl( panel, -1, "" )
|
|
||||||
radio5 = wx.RadioButton( panel, -1, " Radio2 " )
|
radio5 = wx.RadioButton( panel, -1, " Radio2 " )
|
||||||
text5 = wx.TextCtrl( panel, -1, "" )
|
|
||||||
radio6 = wx.RadioButton( panel, -1, " Radio3 " )
|
radio6 = wx.RadioButton( panel, -1, " Radio3 " )
|
||||||
|
text4 = wx.TextCtrl( panel, -1, "" )
|
||||||
|
text5 = wx.TextCtrl( panel, -1, "" )
|
||||||
text6 = wx.TextCtrl( panel, -1, "" )
|
text6 = wx.TextCtrl( panel, -1, "" )
|
||||||
self.group2_ctrls.append((radio4, text4))
|
self.group2_ctrls.append((radio4, text4))
|
||||||
self.group2_ctrls.append((radio5, text5))
|
self.group2_ctrls.append((radio5, text5))
|
||||||
|
Reference in New Issue
Block a user