Added angle to Python's Control Label
January 8th, 2009
control in python "angle".
controllabel(x, y, width, height, label, font,
textcolor, disabledcolor, alignment, haspath, angle)
i'm not sure i did this correctly, but it works.
i had to add an extra argument to guicontrollabel and then just checked if it was non zero. which i guess should only be if called from python.
i downloaded the code this morning before editing it.
also for the pydoc i put "angle : angle of text +/- 360 (opt)"). is that worded right?
i'm not sure if this is one that can be chaged after the label is created, so i did not create a new method. i know setcolor doesn't work after.
patch 1496490 (http://sourceforge.net/tracker/index.php?func=detail&aid=1496490&group_id=87054&atid=581840)
unless python needs access to all the members of the control structures (imo it probably doesn't).
this'll have to wait for after 2.0 though.
i can do something similar with two
as for the xml based loading of controls/windows it means that you have access to everything at creation time - it'll allow you to distribute skin files next to the .py files to load, and you'll still have the same ability to add new controls, or modify the ones that are loaded (assuming they are of the "usual" types)
obviously it'll take a while to do all this - so post 2.0.
cheers,
jonathan
#If you have any other info about this subject , Please add it free.# |
Posted in freedeadaim.com | edit
A little something about you, the author. Nothing lengthy, just an overview.