Metaclass conflict TypeError exception: problem demonstration script
Tim Golden
mail at timgolden.me.uk
Mon Feb 23 04:36:36 EST 2009
> $ cat -n metaclass_test01.py | head
> 1 #!/usr/bin/env python
> 2
> 3 import sys
> 4 import wx
> 5 import CopyAndPaste
> 6
> 7 class ListControl(wx.Frame, CopyAndPaste):
> 8 #class ListControl(wx.Frame):
> 9 def __init__(self, parent, id, title, list, max_list_width):
> 10 wx.Frame.__init__(self,parent,id,title,size=(-1,-1), style=wx.DEFAULT_FRAME_STYLE)
>
> I get the metaclass conflict exception:
You're trying to use a module as a base class.
Don't do that; it doesn't work.
TJG
More information about the Python-list
mailing list