This includes the top level classes that inherit from object, and
ensures that all constructors will be called in multiple inheritance
situations. This removes the need for the explicit call to
KeyBindingView's constructor.
class ListView(object):
def __init__(self):
self.view = appuifw.Listbox(self.items(),self.change_entry)
class ListView(object):
def __init__(self):
self.view = appuifw.Listbox(self.items(),self.change_entry)
+ super(ListView, self).__init__()
def set_title(self, title):
self.title = title
def set_title(self, title):
self.title = title
def __init__(self):
self.binding_map = {}
def __init__(self):
self.binding_map = {}
+ super(KeyBindingView,self).__init__()
def set_keybindings(self, binding_map):
"""
def set_keybindings(self, binding_map):
"""
class EditableListView(SearchableListView,KeyBindingView):
def __init__(self):
class EditableListView(SearchableListView,KeyBindingView):
def __init__(self):
- KeyBindingView.__init__(self)
super(EditableListView, self).__init__()
def key_and_menu_bindings(self,selected_index):
super(EditableListView, self).__init__()
def key_and_menu_bindings(self,selected_index):