#39 wx-Error (paint a Note)

closed-fixed
None
5
2004-12-28
2004-12-17
Anonymous
No

PyUt v1.4a1 - 2004-10-06

When i paint a Note, i got many wx-Errors:

Traceback (most recent call last):
File
"D:\Python\pyut-1.3a-20041006\MiniOgl\DiagramFrame.py",
line 757, in OnPaint
File
"D:\Python\pyut-1.3a-20041006\MiniOgl\DiagramFrame.py",
line 723, in Redraw
File "D:\Python\PyUt\OglNote.py", line 80, in Draw
dc.DrawText(lines[line], (x, y + line *
(dc.GetCharHeight() + 5)))
File
"D:\Python\Python24\lib\site-packages\wx-2.5.3-msw-unicode\wx\_gdi.py",
line 2871, in DrawText
return _gdi_.DC_DrawText(*args, **kwargs)
TypeError: DC_DrawText() takes exactly 4 arguments (3
given)
Traceback (most recent call last):
File "D:\Python\PyUt\UmlFrame.py", line 466, in
OnLeftDown
skip = self._ctrl.doAction(x, y)
File "D:\Python\PyUt\mediator.py", line 465, in doAction
umlFrame.Refresh()
File
"D:\Python\pyut-1.3a-20041006\MiniOgl\DiagramFrame.py",
line 568, in Refresh
File
"D:\Python\pyut-1.3a-20041006\MiniOgl\DiagramFrame.py",
line 683, in Redraw
File
"D:\Python\pyut-1.3a-20041006\MiniOgl\DiagramFrame.py",
line 641, in CreateDC
File
"D:\Python\Python24\lib\site-packages\wx-2.5.3-msw-unicode\wx\_gdi.py",
line 3969, in SelectObject
return _gdi_.MemoryDC_SelectObject(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion
"wxAssertFailure" failed in
..\..\src\msw\dcmemory.cpp(133): Couldn't select a
bitmap into wxMemoryDC

Traceback (most recent call last):
File
"D:\Python\pyut-1.3a-20041006\MiniOgl\DiagramFrame.py",
line 754, in OnPaint
File
"D:\Python\pyut-1.3a-20041006\MiniOgl\DiagramFrame.py",
line 641, in CreateDC
File
"D:\Python\Python24\lib\site-packages\wx-2.5.3-msw-unicode\wx\_gdi.py",
line 3969, in SelectObject
return _gdi_.MemoryDC_SelectObject(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion
"wxAssertFailure" failed in
..\..\src\msw\dcmemory.cpp(133): Couldn't select a
bitmap into wxMemoryDC

Discussion

  • Cédric Dutoit
    Cédric Dutoit
    2004-12-28

    • assigned_to: nobody --> dutoitc
    • status: open --> open-fixed
     
  • Cédric Dutoit
    Cédric Dutoit
    2004-12-28

    Logged In: YES
    user_id=64541

    This has been fixed in CVS

     
  • Cédric Dutoit
    Cédric Dutoit
    2004-12-28

    • status: open-fixed --> closed-fixed