py_ext/PythonEditor.py
changeset 1138 cf2a6a7c87e8
parent 1110 b6e252733c64
child 1511 91538d0c242c
--- a/py_ext/PythonEditor.py	Tue May 14 18:43:52 2013 +0200
+++ b/py_ext/PythonEditor.py	Tue May 14 20:16:07 2013 +0200
@@ -53,18 +53,7 @@
 
 class PythonEditor(CodeFileEditor):
     
-    CONFNODEEDITOR_TABS = CodeFileEditor.CONFNODEEDITOR_TABS + [
-        (_("Python code"), "_create_PythonCodeEditor")]
-    
-    def _create_PythonCodeEditor(self, prnt):
-        self.PythonCodeEditor = PythonCodeEditor(prnt, self.ParentWindow, self.Controler)
-        
-        return self.PythonCodeEditor
+    CONFNODEEDITOR_TABS = [
+        (_("Python code"), "_create_CodePanel")]
+    CODE_EDITOR = PythonCodeEditor
 
-    def RefreshView(self):
-        CodeFileEditor.RefreshView(self)
-        
-        self.PythonCodeEditor.RefreshView()
-
-    def Find(self, direction, search_params):
-        self.PythonCodeEditor.Find(direction, search_params)