# HG changeset patch # User laurent # Date 1253983660 -7200 # Node ID eebcf66f2d5a48ade254ab4888eb6d0ee69d6d68 # Parent 59e33406eea890a7384b0979ad9a72eec9da2449 Bug when opening unknown file at starting fixed diff -r 59e33406eea8 -r eebcf66f2d5a 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 #-------------------------------------------------------------------------------