Error when calling the metaclass bases function() argument 1 must be code, not str

2005-05-15 Thread sector119
I use python 2.4.1 and PIL 1.1.5 and when I execute my program I got error: ./code.py Traceback (most recent call last): File "./code.py", line 7, in ? class DrawPlus(ImageDraw.Draw): TypeError: Error when calling the metaclass bases function() argument 1 must be code, not str Why I go

optparse: store callback return value

2005-04-24 Thread sector119
Hi I use optparse with callback action, my callback function return some value, but optparse does not store this value, options.callback_dest always is None. How can I store callback function return value or callback option value like store action do? I modify optparse.py Option::take_action def

PIL question. draw string with angle?

2005-02-16 Thread sector119
How am I able to draw a sting with some angle on image? -- http://mail.python.org/mailman/listinfo/python-list