Hello,
I hacked the code to have better alignment when using multiline text
In function PaintItem of TreeListMainWindow I added a small _paintText function:
http://pastebin.com/m1f10e294
and I changed the 2 calls to dc.DrawLabel as _paintText(text, textrect, alignment)
Attached shot of the result, hope you like it
Tested in Windows XP SP3, ActivePython 2.5.4.4, wxpython 2.8.10.1 (msw-unicode)
···
–
“Jazz is not dead. It just smells funny.” (FZ)
Hi,
2009/12/11 syborg:
Hello,
I hacked the code to have better alignment when using multiline text
In function PaintItem of TreeListMainWindow I added a small _paintText
function:
http://pastebin.com/m1f10e294
and I changed the 2 calls to dc.DrawLabel as _paintText(text, textrect,
alignment)
Attached shot of the result, hope you like it
Tested in Windows XP SP3, ActivePython 2.5.4.4, wxpython 2.8.10.1
(msw-unicode)
Nice one. If you could create a patch against the latest SVN it would
be much better and easier to apply.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
Nice one. If you could create a patch against the latest SVN it would
be much better and easier to apply.
Andrea.
Sure
Can anyone explain me how to do it?
···
–
“Jazz is not dead. It just smells funny.” (FZ)
Hi Mike,
2009/12/11 Mike Driscoll:
Hi,
> Nice one. If you could create a patch against the latest SVN it would
> be much better and easier to apply.
> Andrea.
Sure
Can anyone explain me how to do it?
Google is your friend:
How to create and apply a patch with Subversion · devroom.io
You'll need to checkout the latest SVN of wxPython (or whatever subset
you need) and then follow the directions in the link above.
Stefano (syborg) already provided me (via a private message) a perfect
patch (but no docstrings :-D) and it has already been applied in SVN.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
On Dec 11, 6:53 am, syborg <stefano.bartale...@gmail.com> wrote: