I’m using 3.0 Classic, and can’t call wx.FontInfo (I get: AttributeError: ‘module’ object has no attibute ‘FontInfo’)
http://wxpython.org/Phoenix/docs/html/FontInfo.html
Says it was introduced in 2.9.5
I’m using 3.0 Classic, and can’t call wx.FontInfo (I get: AttributeError: ‘module’ object has no attibute ‘FontInfo’)
http://wxpython.org/Phoenix/docs/html/FontInfo.html
Says it was introduced in 2.9.5
I actually ran into the same issue with 2.9.5.0 msw Classic just now when trying the code listed in the link.
On Thursday, July 17, 2014 3:54:30 PM UTC-4, Nathan McCorkle wrote:
I’m using 3.0 Classic, and can’t call wx.FontInfo (I get: AttributeError: ‘module’ object has no attibute ‘FontInfo’)
Says it was introduced in 2.9.5
I worked around it like this, based on previous threads on this message board:
info = wx.NativeFontInfo()
info.SetFaceName(“Terminal”)
info.SetPointSize(12)
font = wx.FontFromNativeInfoString(info.ToString())
On Thursday, July 17, 2014 1:12:47 PM UTC-7, Mike Stover wrote:
I actually ran into the same issue with 2.9.5.0 msw Classic just now when trying the code listed in the link.
On Thursday, July 17, 2014 3:54:30 PM UTC-4, Nathan McCorkle wrote:
I’m using 3.0 Classic, and can’t call wx.FontInfo (I get: AttributeError: ‘module’ object has no attibute ‘FontInfo’)
Says it was introduced in 2.9.5
I don’t see it mentioned as changed/deprecated in wxPython Project Phoenix Migration Guide — wxPython Phoenix 4.2.3a1 documentation. Sounds like a bug. You should check and see if a bug has been filed for this or not.
Mike
On Thursday, July 17, 2014 2:54:30 PM UTC-5, Nathan McCorkle wrote:
I’m using 3.0 Classic, and can’t call wx.FontInfo (I get: AttributeError: ‘module’ object has no attibute ‘FontInfo’)
Says it was introduced in 2.9.5