[GRASS-SVN] r53733 - grass/trunk/doc/gui/wxpython/example
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 8 05:00:58 PST 2012
Author: martinl
Date: 2012-11-08 05:00:57 -0800 (Thu, 08 Nov 2012)
New Revision: 53733
Modified:
grass/trunk/doc/gui/wxpython/example/frame.py
Log:
fix wxGUI example
Modified: grass/trunk/doc/gui/wxpython/example/frame.py
===================================================================
--- grass/trunk/doc/gui/wxpython/example/frame.py 2012-11-08 10:20:32 UTC (rev 53732)
+++ grass/trunk/doc/gui/wxpython/example/frame.py 2012-11-08 13:00:57 UTC (rev 53733)
@@ -33,8 +33,8 @@
import grass.script as grass
-from example.toolbars import ExampleMapToolbar, ExampleMiscToolbar, ExampleMainToolbar
-from example.dialogs import ExampleMapDialog
+from toolbars import ExampleMapToolbar, ExampleMiscToolbar, ExampleMainToolbar
+from dialogs import ExampleMapDialog
# It is possible to call grass library functions (in C) directly via ctypes
# however this is less stable. Example is available in trunk/doc/python/, ctypes
@@ -117,7 +117,7 @@
# create map window
- self.MapWindow = BufferedWindow(self, Map = self.GetMap())
+ self.MapWindow = BufferedWindow(self, Map = self.GetMap(), frame = self)
# create whatever you want, here it is a widget for displaying raster info
self.info = ExampleInfoTextManager(self)
More information about the grass-commit
mailing list