forked from openlp/openlp
updated constructor
This commit is contained in:
parent
5fb36b5ef7
commit
025e031d76
@ -43,7 +43,7 @@ class CaptureShortcutButton(QtGui.QPushButton):
|
||||
"""
|
||||
Constructor
|
||||
"""
|
||||
QtGui.QPushButton.__init__(self, *args)
|
||||
super(CaptureShortcutButton, self).__init__(*args)
|
||||
self.setCheckable(True)
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
|
@ -65,7 +65,7 @@ class DisplayController(QtGui.QWidget):
|
||||
"""
|
||||
Set up the general Controller.
|
||||
"""
|
||||
QtGui.QWidget.__init__(self, parent)
|
||||
super(DisplayController, self).__init__(parent)
|
||||
self.is_live = is_live
|
||||
self.display = None
|
||||
self.controller_type = DisplayControllerType.Plugin
|
||||
|
@ -57,7 +57,7 @@ class ThemeManager(QtGui.QWidget):
|
||||
"""
|
||||
Constructor
|
||||
"""
|
||||
QtGui.QWidget.__init__(self, parent)
|
||||
super(ThemeManager, self).__init__(parent)
|
||||
Registry().register(u'theme_manager', self)
|
||||
Registry().register_function(u'bootstrap_initialise', self.load_first_time_themes)
|
||||
Registry().register_function(u'bootstrap_post_set_up', self._push_themes)
|
||||
|
@ -48,7 +48,7 @@ class ThemesTab(SettingsTab):
|
||||
"""
|
||||
self.icon_path = u':/themes/theme_new.png'
|
||||
theme_translated = translate('OpenLP.ThemesTab', 'Themes')
|
||||
SettingsTab.__init__(self, parent, u'Themes', theme_translated)
|
||||
super(ThemesTab, self).__init__(parent, u'Themes', theme_translated)
|
||||
|
||||
def setupUi(self):
|
||||
"""
|
||||
|
@ -41,7 +41,7 @@ above, like so::
|
||||
class AuthorsForm(QtGui.QDialog, Ui_AuthorsDialog):
|
||||
|
||||
def __init__(self, parent=None):
|
||||
QtGui.QDialog.__init__(self, parent)
|
||||
super(AuthorsForm, self).__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
This allows OpenLP to use ``self.object`` for all the GUI elements while keeping them separate from the functionality,
|
||||
|
Loading…
Reference in New Issue
Block a user