Menu

#203 UML view fails with error in version 0.3.0 and 0.3.1.

open
nobody
None
5
2004-09-01
2004-09-01
Anonymous
No

HI

When trying to view the UML for any code
I consistantly get the following error.

Am running on Windows XP, Python 2.3.4, wxPython 2.4.2.4

0.2.8 version of Boa did realise the UML view fine .

Rgds

Tim
timh@zute.net

TypeError: Type error in argument 2 of wxDC_SetFont.
Expected _wxFont_p.Traceback (most recent call last):
TypeError: Type error in argument 2 of wxDC_SetFont.
Expected _wxFont_p. File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\Editor.py",
line 1175, in OnToggleView
view.refreshCtrl()

File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\Views\OGLViews.py",line
663, in refreshCtrl
self.buildShapes(dc)

File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\Views\OGLViews.py",line
420, in buildShapes
className,

File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\Views\OGLViews.py",line
639, in newExternalClass
regionName, maxWidth, nameHeight = self.newRegion(

File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\Views\OGLViews.py",line
302, in newRegion
dc.SetFont(font)

File "C:\Python23\Lib\site-packages\wxPython\gdi.py",
line 781, in SetFont
val = gdic.wxDC_SetFont(self, *_args, **_kwargs)

TypeError: Type error in argument 2 of wxDC_SetFont.
Expected _wxFont_p.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    The bug appears because in Preferences.py, in the method
    initScreenVars() the variables oglBoldFont and oglStdFont are
    not declared as global.

     
  • Luciano Pacheco

    Luciano Pacheco - 2004-09-14

    Logged In: YES
    user_id=1121859

    Hi... I have the same problem and i fone to the source look
    for declarations ... I find this...

    "# thnx Mike Fletcher
    screenWidth = screenHeight = wxDefaultFramePos =
    wxDefaultFrameSize = \ edWidth = inspWidth = paletteHeight = bottomHeight =
    underPalette = \ oglBoldFont = oglStdFont = None

    def initScreenVars():"

    Is it correct !?
    I'm still having problems

    thanks

    Luciano Pacheco

     

Log in to post a comment.