I am not sure but should it maybe use “` SetDeviceClippingRegion”
instead? Just gave it a try and it seems to work, but there is a
small artifact (white edge behind the pane for the notebook) in
the top left corner, maybe a side effect of this?
Werner
`
`
` TypeError: DC.SetClippingRegion(): arguments did not match any
overloaded call:
overload 1: argument 1 has unexpected type 'Region'
overload 2: argument 1 has unexpected type 'Region'
overload 3: argument 1 has unexpected type 'Region'
File
“h:\devProjectsT\aaTests\aaMisc\aaAndrea\auiApp\auiAsInTWCBAndrea.py”,
line 141, in
app = TheApp(redirect=False)
File
“c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\core.py”,
line 1810, in init
self._BootstrapApp()
File
“h:\devProjectsT\aaTests\aaMisc\aaAndrea\auiApp\auiAsInTWCBAndrea.py”,
line 16, in OnInit
frame = MyFrame()
File
“h:\devProjectsT\aaTests\aaMisc\aaAndrea\auiApp\auiAsInTWCBAndrea.py”,
line 38, in init
self.nbSearch.AddPage(nbpa, 'Result', True)
File
“c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\lib\agw\aui\auibook.py”,
line 3295, in AddPage
return self.InsertPage(self.GetPageCount(), page, caption, select,
bitmap, disabled_bitmap, control)
File
“c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\lib\agw\aui\auibook.py”,
line 3370, in InsertPage
self.SetSelectionToWindow(page)
File
“c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\lib\agw\aui\auibook.py”,
line 4068, in SetSelectionToWindow
self.SetSelection(idx)
File
“c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\lib\agw\aui\auibook.py”,
line 4015, in SetSelection
ctrl.MakeTabVisible(ctrl_idx, ctrl)
File
“c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\lib\agw\aui\auibook.py”,
line 1693, in MakeTabVisible
if not self.IsTabVisible(tabPage, self.GetTabOffset(), dc, win):
File
“c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\lib\agw\aui\auibook.py”,
line 1584, in IsTabVisible
self.Render(dc, wnd)
File
“c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\lib\agw\aui\auibook.py”,
line 1539, 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.9.6-msw-phoenix\wx\lib\agw\aui\tabart.py”,
line 2296, in DrawTab
self.FillVC8GradientColour(dc, tabPoints, page.active)
File
“c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\lib\agw\aui\tabart.py”,
line 2453, in FillVC8GradientColour
dc.SetClippingRegion(region)