This is a Python question, I know, (and probably a simple one at
that), but in the wxPython printing framework I want to use:
dc.DrawText(text, myPosition[0], myPosition[1])
where myPosition = (xPos, yPos) returned as a tuple from another
function. Is there a valid shortcut for the above statement? For
example:
dc.DrawText(text, myPosition)
clearly does not work.
···
=====
Donnal Walter
Arkansas Children's Hospital
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
Ho Donnal,
I believe that:
dc.DrawText(text, *myPosition)
should work for recent versions of python.
regards,
-tim
···
----- Original Message -----
From: "Donnal Walter" <donnalcwalter@yahoo.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Tuesday, September 25, 2001 5:57 PM
Subject: [wxPython] tuple as dc.DrawText argument
This is a Python question, I know, (and probably a simple one at
that), but in the wxPython printing framework I want to use:
dc.DrawText(text, myPosition[0], myPosition[1])
where myPosition = (xPos, yPos) returned as a tuple from another
function. Is there a valid shortcut for the above statement? For
example:
dc.DrawText(text, myPosition)
clearly does not work.
=====
Donnal Walter
Arkansas Children's Hospital
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger. http://im.yahoo.com
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users