[GRASS-SVN] r53528 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 23 11:11:34 PDT 2012


Author: martinl
Date: 2012-10-23 11:11:34 -0700 (Tue, 23 Oct 2012)
New Revision: 53528

Modified:
   grass/trunk/gui/wxpython/gui_core/forms.py
Log:
wxGUI cosmetics: rename internal variable (CamelCase)


Modified: grass/trunk/gui/wxpython/gui_core/forms.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/forms.py	2012-10-23 07:11:08 UTC (rev 53527)
+++ grass/trunk/gui/wxpython/gui_core/forms.py	2012-10-23 18:11:34 UTC (rev 53528)
@@ -1626,17 +1626,17 @@
         else:
             self.goutput = None
         
-        self.manual_tab = HelpPanel(parent = self.notebook, grass_command = self.task.name)
-        if not self.manual_tab.IsFile():
-            self.manual_tab.Hide()
+        self.manualTab = HelpPanel(parent = self.notebook, grass_command = self.task.name)
+        if not self.manualTab.IsFile():
+            self.manualTab.Hide()
         else:
-            self.notebook.AddPage(page = self.manual_tab, text = _("Manual"), name = 'manual')
+            self.notebook.AddPage(page = self.manualTab, text = _("Manual"), name = 'manual')
             index = self.AddBitmapToImageList(section = 'manual', imageList = imageList)
             if index >= 0:
                 self.notebook.SetPageImage('manual', index)
         
-        if self.manual_tab.IsLoaded():
-            self.manual_tab.SetMinSize((self.constrained_size[0], self.panelMinHeight))
+        if self.manualTab.IsLoaded():
+            self.manualTab.SetMinSize((self.constrained_size[0], self.panelMinHeight))
 
         self.notebook.SetSelection(0)
 
@@ -1832,9 +1832,9 @@
         if idx > -1 and sel == idx:
             # calling LoadPage() is strangely time-consuming (only first call)
             # FIXME: move to helpPage.__init__()
-            if not self.manual_tab.IsLoaded():
+            if not self.manualTab.IsLoaded():
                 wx.Yield()
-                self.manual_tab.LoadPage()
+                self.manualTab.LoadPage()
 
         self.Layout()
 



More information about the grass-commit mailing list