Beremiz.py
changeset 356 e9698d0ee5f3
parent 337 9d1d9323374a
child 361 331d698e1118
equal deleted inserted replaced
355:e257fe074a90 356:e9698d0ee5f3
    73     wx.Yield()
    73     wx.Yield()
    74 
    74 
    75 import wx.lib.buttons, wx.lib.statbmp
    75 import wx.lib.buttons, wx.lib.statbmp
    76 import TextCtrlAutoComplete, cPickle
    76 import TextCtrlAutoComplete, cPickle
    77 import types, time, re, platform, time, traceback, commands
    77 import types, time, re, platform, time, traceback, commands
    78 from plugger import PluginsRoot
    78 from plugger import PluginsRoot, MATIEC_ERROR_MODEL
    79 from wxPopen import ProcessLogger
    79 from wxPopen import ProcessLogger
    80 
    80 
    81 base_folder = os.path.split(sys.path[0])[0]
    81 base_folder = os.path.split(sys.path[0])[0]
    82 sys.path.append(base_folder)
    82 sys.path.append(base_folder)
    83 from docutils import *
    83 from docutils import *
   100               'mono' : 'Courier',
   100               'mono' : 'Courier',
   101               'helv' : 'Helvetica',
   101               'helv' : 'Helvetica',
   102               'other': 'new century schoolbook',
   102               'other': 'new century schoolbook',
   103               'size' : 18,
   103               'size' : 18,
   104              }
   104              }
   105 
       
   106 MATIEC_ERROR_MODEL = re.compile(".*\.st:([0-9]*)-([0-9]*)..([0-9]*)-([0-9]*): error : (.*)$")
       
   107 
   105 
   108 # Some helpers to tweak GenBitmapTextButtons
   106 # Some helpers to tweak GenBitmapTextButtons
   109 # TODO: declare customized classes instead.
   107 # TODO: declare customized classes instead.
   110 gen_mini_GetBackgroundBrush = lambda obj:lambda dc: wx.Brush(obj.GetParent().GetBackgroundColour(), wx.SOLID)
   108 gen_mini_GetBackgroundBrush = lambda obj:lambda dc: wx.Brush(obj.GetParent().GetBackgroundColour(), wx.SOLID)
   111 gen_textbutton_GetLabelSize = lambda obj:lambda:(wx.lib.buttons.GenButton._GetLabelSize(obj)[:-1] + (False,))
   109 gen_textbutton_GetLabelSize = lambda obj:lambda:(wx.lib.buttons.GenButton._GetLabelSize(obj)[:-1] + (False,))