I was creating my own control (for the first time, so you might want to correct me).
It's derived from dControlMixin and wx.Control. The control just draws a bitmap with text beside using drawBitmap and drawText. It does this in the __init__ function(I looked at other dabo controls to see what I had to do in the initializer). When calling drawText, and every time the control was updated, I got this error. There is no problem as it workes as expected anyway, but the errors gets printed even if it's in a try clause which causes apps compiled with py2exe to complain about unhandled exceptions when closing the application. I guess this is because of how wxPython works with trapping exceptions from wxWidgets... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Leafe Sent: 11. juli 2007 17:20 To: Dabo developers' list Subject: Re: [dabo-dev] dPemMixin.draw() without fontFace set gives a wxerrors On Jul 11, 2007, at 10:32 AM, Simen Haugen wrote: > The errors comes when trying fnt.GetFaceName() when no fontFace is > set. > > Here's a hackish fix: Can you explain how you got this error in the first place? -- Ed Leafe -- http://leafe.com -- http://dabodev.com [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]
