def __init__(self, parent): super(ConfigNotebook, self).__init__(parent) # Make sure config has been initialized prefs = Profile_Get(handlers.CONFIG_KEY, default=None) if prefs is None: buff = eclib.OutputBuffer(self) buff.Hide() Profile_Set( handlers.CONFIG_KEY, dict(autoclear=False, errorbeep=False, wrapoutput=False, defaultf=buff.GetDefaultForeground().Get(), defaultb=buff.GetDefaultBackground().Get(), errorf=buff.GetErrorForeground().Get(), errorb=buff.GetErrorBackground().Get(), infof=buff.GetInfoForeground().Get(), infob=buff.GetInfoBackground().Get(), warnf=buff.GetWarningForeground().Get(), warnb=buff.GetWarningBackground().Get())) buff.Destroy() # Setup self.AddPage(ConfigPanel(self), _("General")) self.AddPage(OutputPanel(self), _("Output")) self.AddPage(MiscPanel(self), _("Misc"))
def __init__(self, parent): """Dialog constructor @param parent: parent window @param title: dialog title """ wx.Panel.__init__(self, parent) # Attributes self._output = eclib.OutputBuffer(self) self._output.SetWrapMode(wx.stc.STC_WRAP_WORD) # Setup self.__DoLayout()
def __init__(self, parent): wx.Notebook.__init__(self, parent) # Make sure config has been intialized prefs = Profile_Get(LAUNCH_PREFS, default=None) if prefs is None: buff = eclib.OutputBuffer(self) buff.Hide() Profile_Set(LAUNCH_PREFS, dict(autoclear=False, defaultf=buff.GetDefaultForeground().Get(), defaultb=buff.GetDefaultBackground().Get(), errorf=buff.GetErrorForeground().Get(), errorb=buff.GetErrorBackground().Get(), infof=buff.GetInfoForeground().Get(), infob=buff.GetInfoBackground().Get(), warnf=buff.GetWarningForeground().Get(), warnb=buff.GetWarningBackground().Get())) buff.Destroy() # Setup self.AddPage(ConfigPanel(self), _("General")) self.AddPage(MiscPanel(self), _("Misc"))