Bug on Beremiz close with and IECcode and IECrawcode frames opened fixed
authorlbessard
Wed, 25 Jun 2008 17:34:57 +0200
changeset 173 2a9c4eec8645
parent 172 8eefeccbd021
child 174 dc81d1d0f463
Bug on Beremiz close with and IECcode and IECrawcode frames opened fixed
plugger.py
--- a/plugger.py	Wed Jun 25 17:32:53 2008 +0200
+++ b/plugger.py	Wed Jun 25 17:34:57 2008 +0200
@@ -1039,7 +1039,7 @@
 
     def _showIECcode(self, logger):
         plc_file = self._getIECcodepath()
-        new_dialog = wx.Frame(None)
+        new_dialog = wx.Frame(self.AppFrame)
         ST_viewer = TextViewer(new_dialog, "", None, None)
         #ST_viewer.Enable(False)
         ST_viewer.SetKeywords(IEC_KEYWORDS)
@@ -1052,7 +1052,7 @@
         new_dialog.Show()
 
     def _editIECrawcode(self, logger):
-        new_dialog = wx.Frame(None)
+        new_dialog = wx.Frame(self.AppFrame)
         
         buildpath = self._getBuildPath()
         # Eventually create build dir