def __init__(self): wx.Frame.__init__(self, None, -1, "%s %s" % (circe_globals.APPNAME, circe_globals.VERSION), wx.DefaultPosition, wx.Size(600, 400)) self.CreateStatusBar() self.SetStatusText("Welcome to %s version %s (%s)" % (circe_globals.APPNAME, circe_globals.VERSION, circe_globals.APPTAG)) self.toolbar_Channels = None self.create_controls() self.create_menu() self.create_sizers() self.create_switchbar() self.create_tree() self.bind_events() self.add_controls() # Create a server + a status window s = servermanager.add_server(self.panel_windowarea) self.panel_windowarea.show_window(s.statuswindow.section_id,s.statuswindow)
def add_server(self): """Create a new window status to make a new connection.""" s = servermanager.add_server(self) return s
def new_server(self): s = servermanager.add_server(self) self.show_window(s.statuswindow.section_id,s.statuswindow)
def evt_menu_NewServer(self, event): s = servermanager.add_server(self.panel_windowarea) self.panel_windowarea.show_window(s.statuswindow.section_id,s.statuswindow)