<s> from wxPython . wx import * <EOL> from wxPython . stc import * <EOL> def create ( parent , filename ) : <EOL> return MDIChild ( parent , filename ) <EOL> [ wxID_MDICHILD ] = map ( lambda _init_ctrls : wxNewId ( ) , range ( <NUM_LIT:1> ) ) <EOL> from StyledTextCtrls import wxStyledTextCtrl , FoldingStyledTextCtrlMix , PythonStyledTextCtrlMix <EOL> from StyledTextCtrls import DebuggingViewSTCMix <EOL> [ wxID_MDICHILDEDITOR ] = map ( lambda __init__ : wxNewId ( ) , range ( <NUM_LIT:1> ) ) <EOL> brkPtMrk , tmpBrkPtMrk , disabledBrkPtMrk , stepPosMrk = range ( <NUM_LIT:3> , <NUM_LIT:3> + <NUM_LIT:4> ) <EOL> class PythonText ( wxStyledTextCtrl , FoldingStyledTextCtrlMix , PythonStyledTextCtrlMix , <EOL> DebuggingViewSTCMix ) : <EOL> def __init__ ( self , parent , id , filename , * args ) : <EOL> wxStyledTextCtrl . __init__ ( self , id = id , parent = parent , * args ) <EOL> self . filename = filename <EOL> FoldingStyledTextCtrlMix . __init__ ( self , id , <NUM_LIT:2> ) <EOL> PythonStyledTextCtrlMix . __init__ ( self , id , ( <NUM_LIT:0> , <NUM_LIT:30> ) ) <EOL> DebuggingViewSTCMix . __init__ ( self , ( brkPtMrk , tmpBrkPtMrk , <EOL> disabledBrkPtMrk , stepPosMrk ) ) <EOL> self . setupDebuggingMargin ( <NUM_LIT:1> ) <EOL> self . SetIndentationGuides ( True ) <EOL> EVT_STC_MARGINCLICK ( self , id , self . OnMarginClick ) <EOL> self . LoadFile ( filename ) <EOL> self . active = True <EOL> def getDebugger ( self ) : <EOL> import entry <EOL> return entry . debugger . proxy <EOL> def OnMarginClick ( self , event ) : <EOL> if event . GetMargin ( ) == <NUM_LIT:1> : <EOL> DebuggingViewSTCMix . OnMarginClick ( self , event ) <EOL> else : <EOL> FoldingStyledTextCtrlMix . OnMarginClick ( self , event ) <EOL> class MDIChild ( wxMDIChildFrame ) : <EOL> def _init_utils ( self ) : <EOL> pass <EOL> def _init_ctrls ( self , prnt ) : <EOL> wxMDIChildFrame . __init__ ( self , id = wxID_MDICHILD , name = '<STR_LIT>' , <EOL> parent = prnt , pos = wxPoint ( <NUM_LIT> , <NUM_LIT> ) , size = wxSize ( <NUM_LIT> , <NUM_LIT> ) , <EOL> style = wxDEFAULT_FRAME_STYLE , title = '<STR_LIT>' ) <EOL> self . _init_utils ( ) <EOL> self . SetClientSize ( wxSize ( <NUM_LIT> , <NUM_LIT> ) ) <EOL> self . Center ( wxBOTH ) <EOL> def __init__ ( self , parent , filename ) : <EOL> self . _init_ctrls ( parent ) <EOL> self . editor = PythonText ( id = wxID_MDICHILDEDITOR , parent = self , filename = filename ) <EOL> self . editor . SetPrintColourMode ( wxSTC_PRINT_COLOURONWHITEDEFAULTBG ) <EOL> self . SetTitle ( filename ) <EOL> def setStepPos ( self , pos ) : <EOL> self . editor . setStepPos ( pos ) <EOL> def clearStepMarker ( self , pos ) : <EOL> self . editor . clearStepPos ( pos ) <EOL> def gotoLine ( self , line ) : <EOL> self . editor . GotoLine ( line ) </s>
