Re: [PyKDE] subclassing in pyqt

2000-12-23 Thread Phil Thompson
David Berner wrote: i found a problem while subclassing pyqt-classes in python. e.g. class Mylistview(QListView): (...) class Mylistitem(QListViewItem): def __init__(self, parent, name, myvar): apply(QListViewItem.__init__,(self,parent,name) self.MyVar = myvar

RE: [PyKDE] subclassing in pyqt

2000-12-23 Thread Boudewijn Rempt
On Sat, 23 Dec 2000, David Berner wrote: Yep, this was exactly the problem. I just didn't know that. you helped me a lot, thanks. It's been a pleasure - I had this a-ha erlebnis a while ago. Nowadays I just keep references to everything I want to access. All the best with your project!

[PyKDE] subclassing in pyqt

2000-12-22 Thread David Berner
i found a problem while subclassing pyqt-classes in python. e.g. class Mylistview(QListView): (...) class Mylistitem(QListViewItem): def __init__(self, parent, name, myvar): apply(QListViewItem.__init__,(self,parent,name) self.MyVar = myvar (...) a = Mylistview(parent)