def run(self, event):
        '''Runs the user code; input() and raw_input() are implemented
           with dialogs.'''
        user_code = self.python_editor.GetValue()
        myGlobals = globals()
        myGlobals['raw_input'] = self.myRawInput
        myGlobals['input'] = self.myInput
        exec user_code in myGlobals
Runs the user code; input() and raw_input() are implemented
           with dialogs.
recipes/Python/473812_Instant_GUI_compiler_testing/recipe-473812.py