How are you defining "fontSize"? Remember that, by default, the
wx.FFont function wants the font size in POINTS, not in PIXELS. On the
typical Windows display (96 dpi), 10 points is 13 pixels. If you
display a 10 point font in a 10 pixel line, it will get cut off.
···
On Wed, 26 Dec 2007 22:33:06 +0200, "Algirdas Brazas" <lists@digital.ktu.lt> wrote:
Now about my question. I am noobie in python programming, so please
don't blame me if I'll tell some nonsenses in near future. I'd like to
mention also that I find python and wxPython with it's cross-platform
capabilities so much exciting.
I do an on screen menu and found one ugly thing. I put several lines
of text using StaticText for each line. I calculate line positions
having in mind font size and adding some space. And there I get some
problems - StaticText size is actualy bigger than the text itself. It
means, if I make several StaticText items next one lower than previous
I get such layout as in my attachment.
To get the layout You see in the attachment I make each line lower by
fontSize+2 pixels than previous.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.