75 def __init__(self, parent, ID, label, initval):
76 wx.Panel.__init__(self, parent, ID)
80 box = wx.StaticBox(self, -1, label)
81 sizer = wx.StaticBoxSizer(box, wx.VERTICAL)
83 self.radio_auto = wx.RadioButton(self, -1,
84 label=
"Auto", style=wx.RB_GROUP)
85 self.radio_manual = wx.RadioButton(self, -1,
87 self.manual_text = wx.TextCtrl(self, -1,
90 style=wx.TE_PROCESS_ENTER)
92 self.Bind(wx.EVT_UPDATE_UI, self.on_update_manual_text, self.manual_text)
93 self.Bind(wx.EVT_TEXT_ENTER, self.on_text_enter, self.manual_text)
95 manual_box = wx.BoxSizer(wx.HORIZONTAL)
96 manual_box.Add(self.radio_manual, flag=wx.ALIGN_CENTER_VERTICAL)
97 manual_box.Add(self.manual_text, flag=wx.ALIGN_CENTER_VERTICAL)
99 sizer.Add(self.radio_auto, 0, wx.ALL, 10)
100 sizer.Add(manual_box, 0, wx.ALL, 10)
const string & str
Definition: json11.cpp:360