forked from openlp/openlp
updated constructor
This commit is contained in:
parent
318feda38f
commit
5fb36b5ef7
@ -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):
|
||||
|
@ -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()
|
||||
|
@ -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:
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user