[GRASSGUI] Re: [GRASS-dev] Python GUI issues

Glynn Clements glynn at gclements.plus.com
Sat Mar 17 17:22:39 EDT 2007


Michael Barton wrote:

> > Also, Gism/optpanels/rastopt.py has hardcoded MacOSX paths for the
> > images, e.g.:
> > 
> > self.help = wx.BitmapButton(self.panel_1, -1,
> > wx.Bitmap("/Applications/Grass/GRASS.app/Contents/Resources/etc/gui/icons/gui-
> > help.gif", wx.BITMAP_TYPE_ANY))
> > 
> > These need to use relative paths.
> 
> This is a consequence of developing with wxGlade. Daniel just posted a PERL
> utility to convert these to relative paths relatively easily. I haven't yet
> tried it out.

It seems to work (although the source path is hardcoded in the
fix-icon-paths.pl script, so it won't work if anyone else edits the
file).

The fixed copy should be stored in SVN, so we'll probably need another
script to convert them back to absolute paths for editing in Glade.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-gui mailing list