[GRASSGUI] fix for select control?

Michael Barton michael.barton at asu.edu
Tue Apr 10 00:52:55 EDT 2007


Jáchym,

I sort of understand what is happening to cause the bug you encountered with
the select.Select control. When the mapset group item in the selection tree
is expanded, it generates a wx.EVT_TREE_ITEM_EXPANDING event. This gets
propagated up through the hierarchy or controls to the grandparent object,
the GIS Manager layer tree, where it is handled by the
wx.EVT_TREE_ITEM_EXPANDING handler method onExpandNode.

There may be a way to limit event propagation up the hierarchy that I don¹t
understand, but what I¹ve done is added an explicit binding for this event
(and the wx.EVT_TREE_ITEM_COLLAPSED event too) in the selection tree class.
This calls a dummy handler in that class. Hopefully, this will keep the item
expand event in the class where it belongs. If we can fix this, it may be
possible to put the selection tree inside a different kind of widget if that
is desirable. Please uncomment line #131 in select and try it out. Let me
know what happens.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-gui/attachments/20070409/4a6f5b91/attachment.html


More information about the grass-gui mailing list