masked numctrl diff between 2.8 and 2.9 BOLD FONT

in an older post in Sep Werner noted that the font in NumCtrl switching
from 2.8 to 2.9 seemed bold due to font style and size changes:
https://groups.google.com/forum/#!topic/wxpython-users/iXCaTpa8n6U

I now run into the same problems under XP which leaves me wondering if
the suggested patches have not made their way into the current 2.9.3.1
py2.7?

Cheers,

Tobi

Hi Tobias,

in an older post in Sep Werner noted that the font in NumCtrl switching
from 2.8 to 2.9 seemed bold due to font style and size changes:
Redirecting to Google Groups

I now run into the same problems under XP which leaves me wondering if
the suggested patches have not made their way into the current 2.9.3.1
py2.7?

The patch which is applied to 2.9.3.1 had to do with alignment and sizing with numeric controls.

As I always use "self.numCtrl1.SetUseFixedWidthFont(False)" the patches fixed my issues.

The early change I had suggested with regards to the bold aspect is not applied.

The error you run into on XP seems to be an issue with the new default Font not being available, and looking at:

dlg.SetFont(wx.Font(8, wx.NORMAL, wx.NORMAL, wx.NORMAL, False))

Doesn't look right if I look at:

http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.Font.html#__init__

Shouldn't the first wx.NORMAL be wx.SWISS or .....?

Werner

···

On 03/02/2012 11:44, Tobias Weber wrote:

Yes, that parameter should be the font family. Where did you see that code?

···

On 2/3/12 3:39 AM, werner wrote:

Hi Tobias,

On 03/02/2012 11:44, Tobias Weber wrote:

in an older post in Sep Werner noted that the font in NumCtrl switching
from 2.8 to 2.9 seemed bold due to font style and size changes:
Redirecting to Google Groups

I now run into the same problems under XP which leaves me wondering if
the suggested patches have not made their way into the current 2.9.3.1
py2.7?

The patch which is applied to 2.9.3.1 had to do with alignment and
sizing with numeric controls.

As I always use "self.numCtrl1.SetUseFixedWidthFont(False)" the patches
fixed my issues.

The early change I had suggested with regards to the bold aspect is not
applied.

The error you run into on XP seems to be an issue with the new default
Font not being available, and looking at:

dlg.SetFont(wx.Font(8, wx.NORMAL, wx.NORMAL, wx.NORMAL, False))

Doesn't look right if I look at:

http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.Font.html#__init__

Shouldn't the first wx.NORMAL be wx.SWISS or .....?

--
Robin Dunn
Software Craftsman

Hi Robin,

...

The error you run into on XP seems to be an issue with the new default
Font not being available, and looking at:

dlg.SetFont(wx.Font(8, wx.NORMAL, wx.NORMAL, wx.NORMAL, False))

Doesn't look right if I look at:

http://xoomer.virgilio.it/infinity77/wxPython/Widgets/wx.Font.html#__init__

Shouldn't the first wx.NORMAL be wx.SWISS or .....?

Yes, that parameter should be the font family. Where did you see that code?

It was in the other thread from Tobias "Re: [wxPython-users] masked numctrl diff between 2.8 and 2.9!! followup "unknown WX font family"

And the exception shown in that thread does not point to masked, at least not from what I see, but it looks like it is in his code.

Werner

···

On 04/02/2012 00:38, Robin Dunn wrote: