ProjectController.py
changeset 1953 5736d25bb393
parent 1948 b9a3f771aaab
child 1995 691d119ba20f
equal deleted inserted replaced
1952:0c20fc810d61 1953:5736d25bb393
    64 from ConfigTreeNode import ConfigTreeNode, XSDSchemaErrorMessage
    64 from ConfigTreeNode import ConfigTreeNode, XSDSchemaErrorMessage
    65 
    65 
    66 base_folder = paths.AbsParentDir(__file__)
    66 base_folder = paths.AbsParentDir(__file__)
    67 
    67 
    68 MATIEC_ERROR_MODEL = re.compile(".*\.st:(\d+)-(\d+)\.\.(\d+)-(\d+): (?:error)|(?:warning) : (.*)$")
    68 MATIEC_ERROR_MODEL = re.compile(".*\.st:(\d+)-(\d+)\.\.(\d+)-(\d+): (?:error)|(?:warning) : (.*)$")
    69 
       
    70 
    69 
    71 
    70 
    72 def ExtractChildrenTypesFromCatalog(catalog):
    71 def ExtractChildrenTypesFromCatalog(catalog):
    73     children_types = []
    72     children_types = []
    74     for n, d, _h, c in catalog:
    73     for n, d, _h, c in catalog:
  1808         self._SetConnector(None)
  1807         self._SetConnector(None)
  1809 
  1808 
  1810     def _Transfer(self):
  1809     def _Transfer(self):
  1811         if self.IsPLCStarted():
  1810         if self.IsPLCStarted():
  1812             dialog = wx.MessageDialog(
  1811             dialog = wx.MessageDialog(
  1813                 self.AppFrame, 
  1812                 self.AppFrame,
  1814                 _("Cannot transfer while PLC is running. Stop it now?"), 
  1813                 _("Cannot transfer while PLC is running. Stop it now?"),
  1815                 style=wx.YES_NO|wx.CENTRE)
  1814                 style=wx.YES_NO | wx.CENTRE)
  1816             if dialog.ShowModal() == wx.ID_YES:
  1815             if dialog.ShowModal() == wx.ID_YES:
  1817                 self._Stop()
  1816                 self._Stop()
  1818             else:
  1817             else:
  1819                 return
  1818                 return
  1820 
  1819