BeremizIDE.py
changeset 1948 b9a3f771aaab
parent 1933 cef288644088
child 2243 02f03bd7639e
--- a/BeremizIDE.py	Mon Feb 19 13:24:57 2018 +0100
+++ b/BeremizIDE.py	Mon Feb 19 15:14:30 2018 +0100
@@ -56,7 +56,8 @@
 from controls import EnhancedStatusBar as esb
 from dialogs.AboutDialog import ShowAboutDialog
 
-from PLCControler import \
+from plcopen.types_enums import \
+    ComputeConfigurationName, \
     LOCATION_CONFNODE, \
     LOCATION_MODULE, \
     LOCATION_GROUP, \
@@ -64,9 +65,10 @@
     LOCATION_VAR_OUTPUT, \
     LOCATION_VAR_MEMORY, \
     ITEM_PROJECT, \
-    ITEM_RESOURCE
-
-from ProjectController import ProjectController, GetAddMenuItems, MATIEC_ERROR_MODEL, ITEM_CONFNODE
+    ITEM_RESOURCE, \
+    ITEM_CONFNODE
+
+from ProjectController import ProjectController, GetAddMenuItems, MATIEC_ERROR_MODEL
 
 from IDEFrame import \
     TITLE,\
@@ -1093,7 +1095,7 @@
 
     def ShowHighlight(self, infos, start, end, highlight_type):
         config_name = self.Controler.GetProjectMainConfigurationName()
-        if config_name is not None and infos[0] == self.Controler.ComputeConfigurationName(config_name):
+        if config_name is not None and infos[0] == ComputeConfigurationName(config_name):
             self.CTR._OpenView()
             selected = self.TabsOpened.GetSelection()
             if selected != -1: