[Fwd: RE: Drag and Drop with custom data - example required]

Christian K. ckkart at hoc.net
Wed Feb 28 22:03:16 PST 2007


Jon <Jon <at> digital-explosion.co.uk> writes:
> 
> Started dragging
> Traceback (most recent call last):
>   File "D:\HyperLight Online\v4.0\HyperSequencer_Py\HyperGUI_v3.py", 
> line 142, in OnBeginDrag
>     dndData = DnD(text)
> TypeError: this constructor takes no arguments
> 
> The DnD class will be a holder for the data that I'll be passing across. 
> I'm quite new to Python so I've probably just overlooked something.. ? 
> Can anyone spot it?

It's due to a typo in the DnD class. It should be '__init__', not '__init_'.

Christian
 








More information about the wxpython-users mailing list