py_ext/PythonEditor.py
changeset 1091 5f612651d227
parent 1060 ac9896336b90
child 1097 233681f2a00e
--- a/py_ext/PythonEditor.py	Fri May 03 11:10:15 2013 +0200
+++ b/py_ext/PythonEditor.py	Mon May 06 10:28:47 2013 +0200
@@ -8,7 +8,7 @@
 from plcopen.plcopen import TestTextElement
 from graphics.GraphicCommons import ERROR_HIGHLIGHT, SEARCH_RESULT_HIGHLIGHT, REFRESH_HIGHLIGHT_PERIOD
 from editors.ConfTreeNodeEditor import ConfTreeNodeEditor
-from editors.TextViewer import GetCursorPos, faces
+from controls.CustomStyledTextCtrl import CustomStyledTextCtrl, faces, GetCursorPos
 
 [STC_PYTHON_ERROR, STC_PYTHON_SEARCH_RESULT] = range(15, 17)
 
@@ -27,7 +27,7 @@
         (_("Python code"), "_create_PythonCodeEditor")]
     
     def _create_PythonCodeEditor(self, prnt):
-        self.PythonCodeEditor = stc.StyledTextCtrl(id=ID_PYTHONEDITOR, parent=prnt,
+        self.PythonCodeEditor = CustomStyledTextCtrl(id=ID_PYTHONEDITOR, parent=prnt,
                  name="TextViewer", pos=wx.DefaultPosition, 
                  size=wx.DefaultSize, style=0)
         self.PythonCodeEditor.ParentWindow = self