def do_send(self, event, clear = True): """Send a line to the MUD.""" v = self.entry.GetValue() self.commands.append(v) command_parser.handle_outgoing(v) if clear: self.do_clear()
def do_send(self, event): command_parser.handle_outgoing('\n'.join( [ self.upload, self.text.GetValue().strip(), '.' ] ))