def on_status_button_clicked(self, button): """ Callback of the status button Performs the 'rcon status' command """ rcon_command = 'status' self.buffer.insert_at_cursor('rcon > status\n') gc = GuiController() gc.send_rcon_command(self.server, rcon_command, self)
def on_status_button_clicked(self, button): """ Callback of the status button Performs the 'rcon status' command """ rcon_command = 'status' self.buffer.insert_at_cursor('rcon > status\n') gc = GuiController() gc.send_rcon_command(self.server, rcon_command, self)
def on_send_requested(self, widget): """ Callback of the send button """ rcon_command = self.input.get_text() gc = GuiController() self.buffer.insert_at_cursor('rcon > ' + rcon_command + '\n') self.input.set_text('') gc.send_rcon_command(self.server, rcon_command, self)
def on_send_requested(self, widget): """ Callback of the send button """ rcon_command = self.input.get_text() gc = GuiController() self.buffer.insert_at_cursor('rcon > ' + rcon_command + '\n') self.input.set_text('') gc.send_rcon_command(self.server, rcon_command, self)