diff --git a/openlp/core/lib/settingstab.py b/openlp/core/lib/settingstab.py index ab775599a..4ded47b04 100644 --- a/openlp/core/lib/settingstab.py +++ b/openlp/core/lib/settingstab.py @@ -52,7 +52,7 @@ class SettingsTab(QtGui.QWidget): ``visible_title`` The title of the tab, which is usually displayed on the tab. """ - QtGui.QWidget.__init__(self, parent) + super(SettingsTab, self).__init__(parent) self.tab_title = title self.tab_title_visible = visible_title self.settings_section = self.tab_title.lower() diff --git a/openlp/core/lib/toolbar.py b/openlp/core/lib/toolbar.py index 41b454207..894f7bc88 100644 --- a/openlp/core/lib/toolbar.py +++ b/openlp/core/lib/toolbar.py @@ -47,7 +47,7 @@ class OpenLPToolbar(QtGui.QToolBar): """ Initialise the toolbar. """ - QtGui.QToolBar.__init__(self, parent) + super(OpenLPToolbar, self).__init__(parent) # useful to be able to reuse button icons... self.setIconSize(QtCore.QSize(20, 20)) self.actions = {}