[wxPython-users] [ANN] PlateButton Control for wxPython
Cody Precord
codyprecord at gmail.com
Fri Dec 14 09:28:10 PST 2007
Hello,
On Dec 13, 2007, at 9:26 AM, Jorgen Bodde wrote:
> Nice work cody!
>
> It really looks useful to me .. one thing I noticed is that some of
> the text in the buttons is truncated a bit too early, for example the
> second "Normal w/Bitmap" is missing part of the p at the end.
>
> Anyway, good work!
> - Jorgen
>
The only way that I could see the text being able to get truncated is
if wx is returning the wrong values for the font metrics, as the size
of the button is based off of size of the bitmap+text width+padding
on both ends and inbetween. I tried with a few different fonts on my
machine and couldn't reproduce this problem. I have noticed a problem
in the past with the text extents returning an incorrect width for
double width characters such as Japanese/Chinese/ect.. Anyone else
have experience with font measuring issues like this?
Do you know what font is being used, or add 'print tbtn.GetFont
().GetFaceName()' to the demo script after the button is made and see
what it says.
What platform are you running under (mac/gtk/msw)?
Thanks,
Cody Precord
http://editra.org
More information about the wxpython-users
mailing list