[GRASS-dev] switch active window on Map Display

Martin Landa landa.martin at gmail.com
Tue Aug 9 03:44:48 EDT 2011


Hi,

2011/8/8 Wenzeslaus <wenzeslaus at gmail.com>:

[...]

> I have general note to this. Maybe it is common problem that someone
> want to get current Map Display. So some simple getter function should
> be introduced:
>
> class GMFrame(wx.Frame):
>    # ...
>    def GetCurrentMapDisplay():
>       """!Returns current Map Display window"""
>       return self.parent.curr_page.maptree.mapdisplay

probably yes, anyway you can write

GetLayerTree().GetMapDisplay()

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-dev mailing list