def do_queued_commands(self, dt): if self.connection: str = self.connection.recv(4096) print "'",str,"'" split = str.split(settings.COMMAND_SEPARATOR) self.incomplete_command += split[0] split = split[1:] while len(split) > 0: complete_command = self.incomplete_command common.do(complete_command, self.command_pool.namespace) self.incomplete_command = split[0] split = split[1:]
def entry(self): cmd = self.stringvar.get() self.cmdhistory.append(cmd) self.curcmd = len(self.cmdhistory) common.do(cmd, self.namespace) self.delete(0, END)
def esc(self, e): common.do(self.box.get(SEL_FIRST, SEL_LAST), self.namespace)