def onSendCommand(self):
        '''Called when user presses the 'send' button or presses 'Enter' while the command entry box has focus.'''
        self.agent_host.sendCommand(self.command_entry.get())
        self.command_entry.delete(0,END)
        self.canvas.focus_set()
def onSendCommand ( self ) : self . agent_host . sendCommand ( self . command_entry . get ( ) ) self . command_entry . delete ( 0 , END ) self . canvas . focus_set ( )
Called when user presses the 'send' button or presses 'Enter' while the command entry box has focus.