Hi Alex,
To fix the following assertion error with 2.9.4 I changed around line
494 in editor.elements.design.py to this:
#TODO: Apply font from active style
_font = wx.Font(DEFAULT_FONT_SIZE * self.app.zoom_get(),
wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.NORMAL)
dc.SetFont(_font)
I.e. change wx.NORMAL for the family parameter to wx.FONTFAMILY_DEFAULT.
Just installed Bazaar (as HG doesn't have a plugin for it), but can't
see in there how to generate a patch or similar - any hint for future
would be welcome.
Werner
wx._core.PyAssertionError: C++ assertion "ff_family != (0<<4)" failed at
..\..\src\msw\font.cpp(651) in wxNativeFontInfo::SetFamily(): unknown
wxFontFamily
File "c:\dev\twcbv4\twcbsrc\reports\testPyRep.py", line 71, in <module>
ptedit()
File "C:\dev\pythonreports\trunk\PythonReports\editor\editor.py", line
11, in main
_app.MainLoop()
File "c:\Python27\Lib\site-packages\wx-2.9.4-msw\wx\_core.py", line
8660, in MainLoop
wx.PyApp.MainLoop(self)
File "c:\Python27\Lib\site-packages\wx-2.9.4-msw\wx\_core.py", line
7952, in MainLoop
return _core_.PyApp_MainLoop(*args, **kwargs)
File "c:\Python27\Lib\site-packages\wx-2.9.4-msw\wx\lib\ogl\_canvas.py",
line 76, in OnPaint
self.GetDiagram().Redraw(dc)
File
"c:\Python27\Lib\site-packages\wx-2.9.4-msw\wx\lib\ogl\_diagram.py",
line 41, in Redraw
object.Draw(dc)
File "c:\Python27\Lib\site-packages\wx-2.9.4-msw\wx\lib\ogl\_basic.py",
line 1154, in Draw
self.GetEventHandler().OnDraw(dc)
File "c:\Python27\Lib\site-packages\wx-2.9.4-msw\wx\lib\ogl\_basic.py",
line 88, in OnDraw
self._previousHandler.OnDraw(dc)
File
"C:\dev\pythonreports\trunk\PythonReports\editor\elements\design.py",
line 496, in OnDraw
wx.NORMAL, wx.NORMAL, wx.NORMAL)
File "c:\Python27\Lib\site-packages\wx-2.9.4-msw\wx\_gdi.py", line 2253,
in __init__
_gdi_.Font_swiginit(self,_gdi_.new_Font(*args, **kwargs))
|