Bug when opening unknown file at starting fixed
authorlaurent
Sat, 26 Sep 2009 18:47:40 +0200
changeset 438 eebcf66f2d5a
parent 437 59e33406eea8
child 440 e183bffc05f0
Bug when opening unknown file at starting fixed
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Thu Sep 24 18:20:07 2009 +0200
+++ b/PLCOpenEditor.py	Sat Sep 26 18:47:40 2009 +0200
@@ -442,7 +442,7 @@
                         wx.aui.AUI_NB_SCROLL_BUTTONS|wx.aui.AUI_NB_TAB_EXTERNAL_MOVE)
             self.AUIManager.AddPane(self.BottomNoteBook, 
                   wx.aui.AuiPaneInfo().Bottom().Layer(0).
-                  BestSize(wx.Size(800, 200)).CloseButton(False))
+                  BestSize(wx.Size(800, 300)).CloseButton(False))
             
             self.RightNoteBook = wx.aui.AuiNotebook(self, ID_PLCOPENEDITORRIGHTNOTEBOOK,
                   style=wx.aui.AUI_NB_TOP|wx.aui.AUI_NB_TAB_SPLIT|wx.aui.AUI_NB_TAB_MOVE|
@@ -2528,7 +2528,7 @@
         IDEFrame.__init__(self, parent)
         
         # Open the filepath if defined
-        if fileOpen is not None:
+        if fileOpen is not None and os.path.isfile(fileOpen):
             # Create a new controller
             self.Controler = PLCControler()
             self.Controler.OpenXMLFile(fileOpen)
@@ -3873,8 +3873,6 @@
             panel.ClearErrors()
 
 #-------------------------------------------------------------------------------
-            grid.SetRowMinimalHeight(row, 28)
-            grid.AutoSizeRow(row, False)
 #                            Debug Variables Panel
 #-------------------------------------------------------------------------------