[GRASS-dev] [GRASS GIS] #2749: Integrate 'Change mapset' dialog in manager toolbar
GRASS GIS
trac at osgeo.org
Fri Sep 18 06:19:11 PDT 2015
#2749: Integrate 'Change mapset' dialog in manager toolbar
--------------------------+---------------------------------------------
Reporter: mwortmann | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: mapset, toolbars, layer manager
CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------------------
Comment (by mwortmann):
I had a little fiddle and copying the approach from the mapdisplay
toolbox, adding the following lines to the LMWorkspaceToolbar __init_
method gives you an impression how it would look like:
{{{
# add mapset selector
self.combo = MapsetSelect(parent = self, id = wx.ID_ANY, size =
(150, -1))
self.comboid = self.AddControl(self.combo)
self.parent.Bind(wx.EVT_COMBOBOX, self.OnChangeMapset,
self.comboid)
}}}
I havent found a working way to for the self.OnChangeMapset method though.
Regarding the size, I have two rows and neither of them is filled. Adding
the 150px select combo fills out the top row nicely. I'm running the g.gui
from a remote machine, so the Ubuntu shortcut doesnt work for me:$
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2749#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list