Fixed bug in ProjectNodeEditor when base params panel is not shown
authorLaurent Bessard
Thu, 18 Apr 2013 10:19:21 +0200
changeset 1036 a6718197caf2
parent 1034 078bf153fb8c
child 1037 978b14147e21
Fixed bug in ProjectNodeEditor when base params panel is not shown
editors/ProjectNodeEditor.py
--- a/editors/ProjectNodeEditor.py	Mon Apr 15 00:36:41 2013 +0200
+++ b/editors/ProjectNodeEditor.py	Thu Apr 18 10:19:21 2013 +0200
@@ -33,11 +33,12 @@
         
         ConfTreeNodeEditor.__init__(self, parent, controler, window, tagname)
         
-        buttons_sizer = self.GenerateMethodButtonSizer()
-        self.ParamsEditorSizer.InsertSizer(0, buttons_sizer, 0, border=5, 
-                flag=wx.LEFT|wx.RIGHT|wx.TOP)
-        self.ParamsEditorSizer.Layout()
-        
+        if self.SHOW_BASE_PARAMS:
+            buttons_sizer = self.GenerateMethodButtonSizer()
+            self.ParamsEditorSizer.InsertSizer(0, buttons_sizer, 0, border=5, 
+                    flag=wx.LEFT|wx.RIGHT|wx.TOP)
+            self.ParamsEditorSizer.Layout()
+            
         self.VariableEditor = self.VariableEditorPanel
 
     def GetTagName(self):