PLCOpenEditor.py
changeset 357 e5501b3337db
parent 352 5cd60f7e510c
child 359 363af30a8b83
--- a/PLCOpenEditor.py	Fri May 22 09:38:09 2009 +0200
+++ b/PLCOpenEditor.py	Fri May 22 09:38:53 2009 +0200
@@ -1528,6 +1528,7 @@
                         self.Controler.ChangePouName(old_name, new_name)
                         self.RefreshEditorNames(self.Controler.ComputePouName(old_name), 
                                                 self.Controler.ComputePouName(new_name))
+                        self.RefreshLibraryTree()
                         self.RefreshPageTitles()
                 elif itemtype == ITEM_TRANSITION:
                     parent = self.TypesTree.GetItemParent(item)
@@ -2821,7 +2822,7 @@
         wx.Dialog.__init__(self, id=ID_PROJECTDIALOG,
               name='ProjectDialog', parent=prnt, pos=wx.Point(376, 223),
               size=wx.Size(500, 350), style=wx.DEFAULT_DIALOG_STYLE,
-              title='Create a new project')
+              title='Project properties')
         self.SetClientSize(wx.Size(500, 350))
 
         self.MainNotebook = wx.Notebook(id=ID_PROJECTDIALOGMAINNOTEBOOK,
@@ -4128,7 +4129,7 @@
         self.VariablesGrid.SetLabelFont(wx.Font(10, 77, wx.NORMAL, wx.NORMAL,
               False, 'Sans'))
         self.VariablesGrid.SetSelectionBackground(wx.WHITE)
-        self.VariablesGrid.SetSelectionBackground(wx.BLACK)
+        self.VariablesGrid.SetSelectionForeground(wx.BLACK)
         if wx.VERSION >= (2, 6, 0):
             self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGE, self.OnVariablesGridCellChange)
             self.VariablesGrid.Bind(wx.grid.EVT_GRID_SELECT_CELL, self.OnVariablesGridSelectCell)