there is a strange behavior of wx.Font: When I try to make a wx.Font of size 70, I get one with a size of 8. This small test (see att.)
import wx
app = wx.App(False)
for face in ('Arial', 'Times NewRoman', 'Symbol'):
print face
for size in range(4, 200):
font = wx.Font(
pointSize=size,
family=wx.FONTFAMILY_DEFAULT,
style=wx.FONTSTYLE_NORMAL,
weight=wx.FONTWEIGHT_NORMAL,
underline=False,
faceName=face)
if size != font.PointSize:
print size, font.PointSize
produces
Arial
70 8
Times NewRoman
70 8
Symbol
70 8
I am using Python 2.6.5 (32) and wxPython 2.8.11.0 unicode on Windows 7. Let me know if you need more information; I suppose this is a problem specific to my system as so far no one has experienced something similar (except perhaps http://programming.itags.org/python/101470 ) . Some time ago on Win XP, this problem did not occur, but then I used other Python and wxPython versions.
Best regards
>
> I am using Python 2.6.5 (32) and wxPython 2.8.11.0 unicode on Windows 7. Let me know if you need more information; I suppose this is a problem specific to my system as so far no one has experienced something similar (except perhaps http://programming.itags.org/python/101470 ) . Some time ago on Win XP, this problem did not occur, but then I used other Python and wxPython versions.
It's doing it for me on XP too. Please create a ticket for this bug at
trac.wxwidgets.org.
--
Robin Dunn
Software Craftsman
http://wxPython.org
Well, that is certainly a DSM (dumb, stupid mistake). A bug report will
certainly get this fixed.
Well the code in question has been there at least 10 years, so maybe it
won't be changed. Doesn't hurt to try though. wxGTK has the same
issue, but wxMac does not.
Wow! enumerations and integer constants sure suck!
Long live Python!
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception