- self.SetBackgroundColour(g.panel.GetBackgroundColour())
- self.radio_std = self.FindWindowByName('RADIO_STD')
- self.radio_file = self.FindWindowByName('RADIO_FILE')
- self.combo = self.FindWindowByName('COMBO_STD')
- self.text = self.FindWindowByName('TEXT_FILE')
- self.button = self.FindWindowByName('BUTTON_BROWSE')
+ self.radio_std = XRCCTRL(self, 'RADIO_STD')
+ self.radio_std.SetBackgroundColour(parent.GetBackgroundColour())
+ self.radio_std.SetForegroundColour(parent.GetForegroundColour())
+ self.radio_file = XRCCTRL(self, 'RADIO_FILE')
+ self.radio_file.SetBackgroundColour(parent.GetBackgroundColour())
+ self.radio_file.SetForegroundColour(parent.GetForegroundColour())
+ self.combo = XRCCTRL(self, 'COMBO_STD')
+ self.text = XRCCTRL(self, 'TEXT_FILE')
+ self.button = XRCCTRL(self, 'BUTTON_BROWSE')