def server_start_commands(self, gui): gui.setServer(server.Server(gui)) gui.getServer().start()
def server_quit_commands(self, gui): if gui.getServer() != None: self.server_shutdown_commands(gui) #self.quit
def server_shutdown_commands(self, gui): gui.getServer().server_shutdown() gui.getServer().stop() gui.setServer(None)