Ejemplo n.º 1
0
 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:]
Ejemplo n.º 2
0
 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:]
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 def esc(self, e):
   common.do(self.box.get(SEL_FIRST, SEL_LAST), self.namespace)
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 def esc(self, e):
   common.do(self.box.get(SEL_FIRST, SEL_LAST), self.namespace)