From: Karl S. <sc...@ye...> - 2002-09-17 10:20:30
|
Hello everybody, I would like to have a swing-ComboBoxModel written in Jython. For that reason, I need my Model extending AbstractListModel and implementing ComboBoxModel, if I understand it correctly. <code-snipplet> class MyComboModel (swing.AbstractListModel, swing.ComboBoxModel): def __init__(self): swing.AbstractListModel.__init__(self) self.addListDataListener(None) # use None, just to verify if method can be found </code-snipplet> results in: AttributeError: abstract method "addListDataListener" not implemented (but that's one reason of AbstractListModel to provide for listeners) Funny, if deriving only from AbstractListModel but not from ComboBoxModel the method can be found as expected. I would appreciate any help very much, best regards, Karl Scalet |