Andrea Gavana wrote:
Hi All,
I thought to give another try to the subject of subclassing
AuiTabArt, and I followed Robin's suggestion about using PyAuiTabArt.
Well, in my __init__ method, if I write:class MyTabArt(wx.aui.PyAuiTabArt):
def __init__(self):
wx.aui.PyAuiTabArt.__init__(self)
wxPython returns:
D:\MyProjects>AuiTabArt.py
Traceback (most recent call last):
File "D:\MyProjects\AuiTabArt.py", line 623, in <module>
panel = TestPanel(frame)
File "D:\MyProjects\AuiTabArt.py", line 607, in __init__
self.nb.SetArtProvider(MyTabArt())
File "D:\MyProjects\AuiTabArt.py", line 145, in __init__
wx.aui.PyAuiTabArt.__init__(self)
File "C:\Python25\lib\site-packages\wx-2.8-msw-ansi\wx\aui.py", line
1753, in __init__
PyAuiTabArt._setCallbackInfo(self, self, PyAuiTabArt)
AttributeError: type object 'PyAuiTabArt' has no attribute '_setCallbackInfo'
Ok, this is a definite problem in the subclass wrappers. I'll take care of it.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!