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
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!
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)