Beremiz.py
changeset 807 17c97fec1164
parent 801 435e49e80832
child 814 5743cbdff669
equal deleted inserted replaced
806:abf1afc1f04d 807:17c97fec1164
   155         sys.path.append(extension_folder)
   155         sys.path.append(extension_folder)
   156         AddBitmapFolder(os.path.join(extension_folder, "images"))
   156         AddBitmapFolder(os.path.join(extension_folder, "images"))
   157         execfile(extfilename, locals())
   157         execfile(extfilename, locals())
   158 
   158 
   159 import wx.lib.buttons, wx.lib.statbmp
   159 import wx.lib.buttons, wx.lib.statbmp
   160 from util.TextCtrlAutoComplete import TextCtrlAutoComplete
       
   161 import cPickle
   160 import cPickle
   162 from util.BrowseValuesLibraryDialog import BrowseValuesLibraryDialog
       
   163 import types, time, re, platform, time, traceback, commands
   161 import types, time, re, platform, time, traceback, commands
   164 from ProjectController import ProjectController, MATIEC_ERROR_MODEL, ITEM_CONFNODE
       
   165 from util.MiniTextControler import MiniTextControler
       
   166 from util.ProcessLogger import ProcessLogger
       
   167 
   162 
   168 from docutil import OpenHtmlFrame
   163 from docutil import OpenHtmlFrame
   169 from PLCOpenEditor import IDEFrame, AppendMenu, TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE, POUINSTANCEVARIABLESPANEL, LIBRARYTREE, SCALING, PAGETITLES 
   164 from PLCOpenEditor import IDEFrame, AppendMenu, TITLE, EDITORTOOLBAR, FILEMENU, EDITMENU, DISPLAYMENU, PROJECTTREE, POUINSTANCEVARIABLESPANEL, LIBRARYTREE, SCALING, PAGETITLES 
   170 from PLCOpenEditor import EditorPanel, Viewer, TextViewer, GraphicViewer, ResourceEditor, ConfigurationEditor, DataTypeEditor
   165 from PLCOpenEditor import EditorPanel, Viewer, TextViewer, GraphicViewer, ResourceEditor, ConfigurationEditor, DataTypeEditor
   171 from PLCOpenEditor import EncodeFileSystemPath, DecodeFileSystemPath
   166 from PLCOpenEditor import EncodeFileSystemPath, DecodeFileSystemPath
   172 from PLCControler import LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY, ITEM_PROJECT, ITEM_RESOURCE
   167 from PLCControler import LOCATION_CONFNODE, LOCATION_MODULE, LOCATION_GROUP, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY, ITEM_PROJECT, ITEM_RESOURCE
       
   168 
       
   169 from util.TextCtrlAutoComplete import TextCtrlAutoComplete
       
   170 from util.BrowseValuesLibraryDialog import BrowseValuesLibraryDialog
       
   171 from util.MiniTextControler import MiniTextControler
       
   172 from util.ProcessLogger import ProcessLogger
       
   173 from ProjectController import ProjectController, MATIEC_ERROR_MODEL, ITEM_CONFNODE
   173 
   174 
   174 MAX_RECENT_PROJECTS = 10
   175 MAX_RECENT_PROJECTS = 10
   175 
   176 
   176 class GenStaticBitmap(wx.lib.statbmp.GenStaticBitmap):
   177 class GenStaticBitmap(wx.lib.statbmp.GenStaticBitmap):
   177     """ Customized GenStaticBitmap, fix transparency redraw bug on wx2.8/win32, 
   178     """ Customized GenStaticBitmap, fix transparency redraw bug on wx2.8/win32,