updated constructor

This commit is contained in:
Andreas Preikschat 2013-07-18 16:32:23 +02:00
parent 318feda38f
commit 5fb36b5ef7
6 changed files with 6 additions and 5 deletions

View File

@ -61,7 +61,7 @@ class ServiceManagerList(QtGui.QTreeWidget):
"""
Constructor
"""
QtGui.QTreeWidget.__init__(self, parent)
super(ServiceManagerList, self).__init__(parent)
self.serviceManager = serviceManager
def keyPressEvent(self, event):

View File

@ -52,7 +52,7 @@ class ShortcutListForm(QtGui.QDialog, Ui_ShortcutListDialog):
"""
Constructor
"""
QtGui.QDialog.__init__(self, parent)
super(ShortcutListForm, self).__init__(parent)
self.setupUi(self)
self.changedActions = {}
self.action_list = ActionList.get_instance()

View File

@ -90,7 +90,7 @@ class SlideController(DisplayController):
"""
Set up the Slide Controller.
"""
DisplayController.__init__(self, parent, is_live)
super(SlideController, self).__init__(parent, is_live)
Registry().register_function(u'bootstrap_post_set_up', self.screen_size_changed)
self.screens = ScreenList()
try:

View File

@ -96,7 +96,7 @@ class OpenLPWizard(QtGui.QWizard):
"""
Constructor
"""
QtGui.QWizard.__init__(self, parent)
super(OpenLPWizard, self).__init__(parent)
self.plugin = plugin
self.with_progress_page = add_progress_page
self.setObjectName(name)

View File

@ -46,6 +46,7 @@ class AlertForm(QtGui.QDialog, Ui_AlertDialog):
self.manager = plugin.manager
self.plugin = plugin
self.item_id = None
# TODO: Use Registry()
super(AlertForm, self).__init__(self.plugin.main_window)
self.setupUi(self)
self.display_button.clicked.connect(self.on_display_clicked)

View File

@ -48,7 +48,7 @@ class AlertsManager(QtCore.QObject):
log.info(u'Alert Manager loaded')
def __init__(self, parent):
QtCore.QObject.__init__(self, parent)
super(AlertsManager, self).__init__(parent)
Registry().register(u'alerts_manager', self)
self.timer_id = 0
self.alert_list = []