[GRASS-dev] GUI architecture in G7

Martin Landa landa.martin at gmail.com
Thu Jun 23 10:12:34 EDT 2011


2011/6/23 Margherita Di Leo <dileomargherita at gmail.com>:
> I am trying to figure out the architecture of the main wxGUI in G7. My aim
> is to add "Network Modeling" in the Layer Manager menubar, under Layer
> Manager -> Raster -> Hydrologic Modeling. I looked into [0], but clicking
> "GUI" and "Interfaces" gives me "404 Not Found" error. So, I am trying to

well, toc is broken, away links below works, eg.


> figure out the architecture by tracking back the variable names, and
> discovered that I probably should add the string "Network Modeling" in the
> file file gui/wxpython/menustring.py but I still don't have clear where I
> should add the third level menu, the event and the binding function ..  I
> feel a bit lost.

This is generated during compilation process, edit
gui/wxpython/xml/menudata.xml instead.

> Also, I don't understand where is located the wxGUI for each command. I
> mean, for example typing r.watershed in the terminal raises the GUI.. where
> is it written? I am sorry if I ask probably silly questions, but could
> anyone kindly address me where I can learn more about that? So far I have
> scripted just for grass 6.5 and it is fairly different to programming on G7,
> so any hints are very welcome.

It's generated on the fly by menuform.py based on `command


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

More information about the grass-dev mailing list