updated constructors

This commit is contained in:
Andreas Preikschat 2013-07-18 16:40:40 +02:00
parent 1ac35584bd
commit 283d9c8e9d
9 changed files with 9 additions and 9 deletions

View File

@ -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,

View File

@ -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)

View File

@ -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):

View File

@ -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')

View File

@ -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,

View File

@ -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):

View File

@ -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):

View File

@ -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')

View File

@ -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')