[GRASS-SVN] r30345 - in grass/trunk/gui/wxpython: . gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 25 11:08:00 EST 2008


Author: martinl
Date: 2008-02-25 11:07:59 -0500 (Mon, 25 Feb 2008)
New Revision: 30345

Modified:
   grass/trunk/gui/wxpython/gui_modules/menuform.py
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: wx.LogNull instance added to suppress wx log message

Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-02-25 07:05:24 UTC (rev 30344)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py	2008-02-25 16:07:59 UTC (rev 30345)
@@ -1369,6 +1369,7 @@
         print _("usage: %s <grass command>") % sys.argv[0]
         sys.exit()
     if sys.argv[1] != 'test':
+        q=wx.LogNull()
         GrassGUIApp( grassTask( sys.argv[1] ) ).MainLoop()
     else: #Test
         # Test grassTask from within a GRASS session
@@ -1459,5 +1460,6 @@
             "value" : True
             }
             ]
+        q=wx.LogNull()
         GrassGUIApp( task ).MainLoop()
 

Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2008-02-25 07:05:24 UTC (rev 30344)
+++ grass/trunk/gui/wxpython/wxgui.py	2008-02-25 16:07:59 UTC (rev 30345)
@@ -1533,6 +1533,7 @@
     # run application
     #
     app = GMApp(workspaceFile)
+    q=wx.LogNull()
     app.MainLoop()
 
 if __name__ == "__main__":



More information about the grass-commit mailing list