Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 def do_send(self, event):
  command_parser.handle_outgoing('\n'.join(
   [
    self.upload,
    self.text.GetValue().strip(),
    '.'
    ]
   ))