Oops! Mostly doing Civ5 now, I didn't realize my thread became active again.
Many thanks EmperorFool for answering questions and resolving errors in my absence.
The 'key' keyword parameter in the sort() method for lists was also new in Python 2.4.
The old-fashioned way to write:
Thanks Xyth for trying out the MapScriptTools and not giving up after finding some errors. I am still interested in getting my MapScriptTools right for the MAC, so I'll probably post a version 1.02, if I can get some confirmation on the solution.
Many thanks EmperorFool for answering questions and resolving errors in my absence.
The 'key' keyword parameter in the sort() method for lists was also new in Python 2.4.
The old-fashioned way to write:
would be:vList.sort( key = lambda test: len(test[1]) )
I've used this only in makeMapLegend() and showContinents(). The changes should be fairly straightforward.vList.sort( cmp=lambda x,y: cmp( len(x[1]), len(y[1]) ) )
Thanks Xyth for trying out the MapScriptTools and not giving up after finding some errors. I am still interested in getting my MapScriptTools right for the MAC, so I'll probably post a version 1.02, if I can get some confirmation on the solution.