py_ext/PythonEditor.py
changeset 1138 cf2a6a7c87e8
parent 1110 b6e252733c64
child 1511 91538d0c242c
equal deleted inserted replaced
1137:c37f8d379ab0 1138:cf2a6a7c87e8
    51 #                          CFileEditor Main Frame Class
    51 #                          CFileEditor Main Frame Class
    52 #-------------------------------------------------------------------------------
    52 #-------------------------------------------------------------------------------
    53 
    53 
    54 class PythonEditor(CodeFileEditor):
    54 class PythonEditor(CodeFileEditor):
    55     
    55     
    56     CONFNODEEDITOR_TABS = CodeFileEditor.CONFNODEEDITOR_TABS + [
    56     CONFNODEEDITOR_TABS = [
    57         (_("Python code"), "_create_PythonCodeEditor")]
    57         (_("Python code"), "_create_CodePanel")]
    58     
    58     CODE_EDITOR = PythonCodeEditor
    59     def _create_PythonCodeEditor(self, prnt):
       
    60         self.PythonCodeEditor = PythonCodeEditor(prnt, self.ParentWindow, self.Controler)
       
    61         
       
    62         return self.PythonCodeEditor
       
    63 
    59 
    64     def RefreshView(self):
       
    65         CodeFileEditor.RefreshView(self)
       
    66         
       
    67         self.PythonCodeEditor.RefreshView()
       
    68 
       
    69     def Find(self, direction, search_params):
       
    70         self.PythonCodeEditor.Find(direction, search_params)