diff --git a/openlp/plugins/bibles/forms/__init__.py b/openlp/plugins/bibles/forms/__init__.py index abef5c85c..1d4fdad6c 100644 --- a/openlp/plugins/bibles/forms/__init__.py +++ b/openlp/plugins/bibles/forms/__init__.py @@ -42,7 +42,7 @@ above, like so:: class BibleImportForm(QtGui.QWizard, Ui_BibleImportWizard): def __init__(self, parent, manager, bible_plugin): - QtGui.QWizard.__init__(self, parent) + super(BibleImportForm, 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, diff --git a/openlp/plugins/bibles/forms/editbibleform.py b/openlp/plugins/bibles/forms/editbibleform.py index 4e0a5a7c0..1e57b10f9 100644 --- a/openlp/plugins/bibles/forms/editbibleform.py +++ b/openlp/plugins/bibles/forms/editbibleform.py @@ -51,7 +51,7 @@ class EditBibleForm(QtGui.QDialog, Ui_EditBibleDialog): """ Constructor """ - QtGui.QDialog.__init__(self, parent) + super(EditBibleForm, self).__init__(parent) self.media_item = media_item self.book_names = BibleStrings().BookNames self.setupUi(self) diff --git a/openlp/plugins/bibles/forms/languageform.py b/openlp/plugins/bibles/forms/languageform.py index 2bba3d7a4..efcd593d3 100644 --- a/openlp/plugins/bibles/forms/languageform.py +++ b/openlp/plugins/bibles/forms/languageform.py @@ -54,7 +54,7 @@ class LanguageForm(QDialog, Ui_LanguageDialog): """ Constructor """ - QDialog.__init__(self, parent) + super(LanguageForm, self).__init__(parent) self.setupUi(self) def exec_(self, bible_name): diff --git a/openlp/plugins/bibles/lib/biblestab.py b/openlp/plugins/bibles/lib/biblestab.py index 17182d7e2..75aa45efc 100644 --- a/openlp/plugins/bibles/lib/biblestab.py +++ b/openlp/plugins/bibles/lib/biblestab.py @@ -49,7 +49,7 @@ class BiblesTab(SettingsTab): self.paragraph_style = True self.show_new_chapters = False self.display_style = 0 - SettingsTab.__init__(self, parent, title, visible_title, icon_path) + super(BiblesTab, self).__init__(parent, title, visible_title, icon_path) def setupUi(self): self.setObjectName(u'BiblesTab') diff --git a/openlp/plugins/images/forms/__init__.py b/openlp/plugins/images/forms/__init__.py index 8bb8e966f..bdb2bcc18 100644 --- a/openlp/plugins/images/forms/__init__.py +++ b/openlp/plugins/images/forms/__init__.py @@ -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, diff --git a/openlp/plugins/images/forms/addgroupform.py b/openlp/plugins/images/forms/addgroupform.py index 4cdc6a73b..29bad676d 100644 --- a/openlp/plugins/images/forms/addgroupform.py +++ b/openlp/plugins/images/forms/addgroupform.py @@ -42,7 +42,7 @@ class AddGroupForm(QtGui.QDialog, Ui_AddGroupDialog): """ Constructor """ - QtGui.QDialog.__init__(self, parent) + super(AddGroupForm, self).__init__(parent) self.setupUi(self) def exec_(self, clear=True, show_top_level_group=False, selected_group=None): diff --git a/openlp/plugins/images/forms/choosegroupform.py b/openlp/plugins/images/forms/choosegroupform.py index 02f79e63b..db5a7f541 100644 --- a/openlp/plugins/images/forms/choosegroupform.py +++ b/openlp/plugins/images/forms/choosegroupform.py @@ -40,7 +40,7 @@ class ChooseGroupForm(QtGui.QDialog, Ui_ChooseGroupDialog): """ Constructor """ - QtGui.QDialog.__init__(self, parent) + super(ChooseGroupForm, self).__init__(parent) self.setupUi(self) def exec_(self, selected_group=None): diff --git a/openlp/plugins/images/lib/imagetab.py b/openlp/plugins/images/lib/imagetab.py index b43b19097..95edbab15 100644 --- a/openlp/plugins/images/lib/imagetab.py +++ b/openlp/plugins/images/lib/imagetab.py @@ -37,7 +37,7 @@ class ImageTab(SettingsTab): ImageTab is the images settings tab in the settings dialog. """ def __init__(self, parent, name, visible_title, icon_path): - SettingsTab.__init__(self, parent, name, visible_title, icon_path) + super(ImageTab, self).__init__(parent, name, visible_title, icon_path) def setupUi(self): self.setObjectName(u'ImagesTab') diff --git a/openlp/plugins/media/lib/mediatab.py b/openlp/plugins/media/lib/mediatab.py index d0106b0f6..564585aa9 100644 --- a/openlp/plugins/media/lib/mediatab.py +++ b/openlp/plugins/media/lib/mediatab.py @@ -46,7 +46,7 @@ class MediaTab(SettingsTab): """ def __init__(self, parent, title, visible_title, icon_path): self.parent = parent - SettingsTab.__init__(self, parent, title, visible_title, icon_path) + super(MediaTab, self).__init__(parent, title, visible_title, icon_path) def setupUi(self): self.setObjectName(u'MediaTab')