Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1334 closed defect (fixed)

ps.map's wxGUI should support python 2.4+

Reported by: martinl Owned by: annakrat
Priority: major Milestone: 6.5.0
Component: wxGUI Version: svn-develbranch6
Keywords: ps.map Cc:
CPU: Unspecified Platform: Unspecified

Description

In ps.map's GUI is used string.format() http://docs.python.org/library/stdtypes.html#str.format which has been added to python in 2.6. wxGUI declares that python 2.4+ is supported. This function need to be replaced with something relevant available in python 2.4+, e.g.

"%(Format)s" % self.instructions

or better by Template strings

Martin

Change History (2)

comment:1 by annakrat, 14 years ago

Resolution: fixed
Status: newclosed

It should be OK now. It wasn't fun to fix it at all. I hope, this was the only problem with python versions.

in reply to:  1 comment:2 by martinl, 14 years ago

Replying to annakrat:

It should be OK now. It wasn't fun to fix it at all. I hope, this was the only problem with python versions.

Thanks, I have also conditionalized usage of floatspin (r45752) which is not included in older versions of wxPython. In source:grass/trunk/gui/wxpython/README is noted minimal version wxPython 2.8.1.1. At certain point we will update requirements. Anyway wxpython package in osgeo4w is 2.8.9.1 which doesn't include floatspin (AFAIR). Now the ps.maps's GUI should be working for winGRASS (except of preview which requires Python Image Library).

Note: See TracTickets for help on using tickets.