<s> """<STR_LIT>""" <EOL> from traits . api import Event <EOL> from pyface . key_pressed_event import KeyPressedEvent <EOL> from pyface . i_widget import IWidget <EOL> class IPythonShell ( IWidget ) : <EOL> """<STR_LIT>""" <EOL> command_executed = Event <EOL> key_pressed = Event ( KeyPressedEvent ) <EOL> def interpreter ( self ) : <EOL> """<STR_LIT>""" <EOL> def bind ( self , name , value ) : <EOL> """<STR_LIT>""" <EOL> def execute_command ( self , command , hidden = True ) : <EOL> """<STR_LIT>""" <EOL> def execute_file ( self , path , hidden = True ) : <EOL> """<STR_LIT>""" <EOL> class MPythonShell ( object ) : <EOL> """<STR_LIT>""" <EOL> def bind ( self , name , value ) : <EOL> """<STR_LIT>""" <EOL> self . interpreter ( ) . locals [ name ] = value <EOL> def _on_command_executed ( self ) : <EOL> """<STR_LIT>""" <EOL> self . command_executed = self </s>
