code-google-com / rad2py

Automatically exported from code.google.com/p/rad2py
GNU General Public License v3.0
0 stars 0 forks source link

Closing a AUI MDI child (notebook) produces exception (windows) #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open a file
2. close that file
3. exception!

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py", line 1781, in OnPaint
    self.Render(dc, self)
  File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\auibook.py", line 1471, in Render
    page.rect, tab_button.rect, x_extent = self._art.DrawTab(dc, wnd, page, rect, tab_button.cur_state)
  File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\tabart.py", line 571, in DrawTab
    self.DrawFocusRectangle(dc, page, wnd, draw_text, offset_focus, bitmap_offset, drawn_tab_yoff, drawn_tab_height, rectx, recty)
  File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\agw\aui\tabart.py", line 813, in DrawFocusRectangle
    focusRect.Inflate(2, 2)
UnboundLocalError: local variable 'focusRect' referenced before assignment

Original issue reported on code.google.com by reingart@gmail.com on 14 Oct 2011 at 5:05