I want the text in a StaticText to be larger than default. I've
spent at least an hour searching the docs, and can't find any
examples of anything like that in the documentation.
I can see how to select a font size in "points", but I don't
want to pick a point size, I just want "larger". If I pick a
point size it's going to be wrong on somebody's system. [If
letting the programmer choose font sizes in points isn't the
king of bad UI ideas, it's at least one of the elder princes.]
Aren't there any portable font size constants like wx.TINY,
wx.SMALL, wx.DEFAULT, wx.LARGE, wx.HUGE? It seems like a
pretty obvious thing that people need to do, but that's
probably because I've been using TeX and LaTeX for 20 years.
···
--
Grant Edwards grante Yow! ... PENGUINS are
at floating by... visi.com
I want the text in a StaticText to be larger than default. I've
spent at least an hour searching the docs, and can't find any
examples of anything like that in the documentation.
Not what you're after, but possibly you could ask for the default font
size, and then calculate something bigger?
f = wx.SystemSettings_GetFont(wx.SYS_DEVICE_DEFAULT_FONT)
f.GetPointSize()
12
···
On 02/09/05, Grant Edwards <grante@visi.com> wrote:
Thanks -- it looked like that was the way it was done. It's
only a few lines of code, but it seems like something that
should really be done "under the cover" so to speak.
···
On 2005-09-02, John Fouhy <john@fouhy.net> wrote:
On 02/09/05, Grant Edwards <grante@visi.com> wrote:
I want the text in a StaticText to be larger than default. I've
spent at least an hour searching the docs, and can't find any
examples of anything like that in the documentation.
Not what you're after, but possibly you could ask for the default font
size, and then calculate something bigger?
f = wx.SystemSettings_GetFont(wx.SYS_DEVICE_DEFAULT_FONT)
f.GetPointSize()
12
--
Grant Edwards grante Yow! I feel like I am
at sharing a "CORN-DOG" with
visi.com NIKITA KHRUSCHEV...