Beremiz.py
changeset 724 e0630d262ac3
parent 722 a94f361fc42e
child 725 31dade089db5
--- a/Beremiz.py	Tue May 08 17:48:47 2012 +0200
+++ b/Beremiz.py	Tue May 08 22:27:49 2012 +0200
@@ -143,8 +143,9 @@
 sys.path.append(os.path.join(base_folder, "plcopeneditor"))
 
 import wx.lib.buttons, wx.lib.statbmp
-import TextCtrlAutoComplete, cPickle
-from BrowseValuesLibraryDialog import BrowseValuesLibraryDialog
+from util.TextCtrlAutoComplete import TextCtrlAutoComplete
+import cPickle
+from util.BrowseValuesLibraryDialog import BrowseValuesLibraryDialog
 import types, time, re, platform, time, traceback, commands
 from ConfigTree import ConfigTreeRoot, MiniTextControler, MATIEC_ERROR_MODEL
 from ProcessLogger import ProcessLogger
@@ -724,7 +725,7 @@
 
     def OnPanelLeftDown(self, event):
         focused = self.FindFocus()
-        if isinstance(focused, TextCtrlAutoComplete.TextCtrlAutoComplete):
+        if isinstance(focused, TextCtrlAutoComplete):
             focused.DismissListBox()
         event.Skip()
     
@@ -1627,7 +1628,7 @@
                         spinctrl.Bind(wx.EVT_SPINCTRL, self.GetTextCtrlCallBackFunction(spinctrl, confnode, element_path), id=id)
                     else:
                         choices = cPickle.loads(str(self.Config.Read(element_path, cPickle.dumps([""]))))
-                        textctrl = TextCtrlAutoComplete.TextCtrlAutoComplete(id=id, 
+                        textctrl = TextCtrlAutoComplete(id=id, 
                                                                      name=element_infos["name"], 
                                                                      parent=parent, 
                                                                      appframe=self,