changed constructors

This commit is contained in:
Andreas Preikschat 2013-07-18 16:28:03 +02:00
parent f5ce8e85f3
commit 59be78f20a
8 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,7 @@ class PPTViewer(QtGui.QWidget):
Standalone Test Harness for the pptviewlib library
"""
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
super(PPTViewer, self).__init__(parent)
self.pptid = -1
self.setWindowTitle(u'PowerPoint Viewer Test')

View File

@ -48,7 +48,7 @@ class EditVerseForm(QtGui.QDialog, Ui_EditVerseDialog):
"""
Constructor
"""
QtGui.QDialog.__init__(self, parent)
super(EditVerseForm, self).__init__(parent)
self.setupUi(self)
self.verse_text_edit.customContextMenuRequested.connect(self.context_menu)
self.insert_button.clicked.connect(self.on_insert_button_clicked)

View File

@ -44,7 +44,7 @@ class MediaFilesForm(QtGui.QDialog, Ui_MediaFilesDialog):
log.info(u'%s MediaFilesForm loaded', __name__)
def __init__(self, parent):
QtGui.QDialog.__init__(self)
super(MediaFilesForm, self).__init__()
self.setupUi(self)
def populateFiles(self, files):

View File

@ -60,7 +60,7 @@ class SongExportForm(OpenLPWizard):
``plugin``
The songs plugin.
"""
OpenLPWizard.__init__(self, parent, plugin, u'song_export_wizard', u':/wizards/wizard_exportsong.bmp')
super(SongExportForm, self).__init__(parent, plugin, u'song_export_wizard', u':/wizards/wizard_exportsong.bmp')
self.stop_export_flag = False
Registry().register_function(u'openlp_stop_wizard', self.stop_export)

View File

@ -64,7 +64,7 @@ class SongReviewWidget(QtGui.QWidget):
``song``
The Song which this SongReviewWidget should represent.
"""
QtGui.QWidget.__init__(self, parent)
super(SongReviewWidget, self).__init__(parent)
self.song = song
self.setupUi()
self.retranslateUi()

View File

@ -820,7 +820,7 @@ class OpenLyricsError(Exception):
VerseError = 2
def __init__(self, type, log_message, display_message):
Exception.__init__(self)
super(OpenLyricsError, self).__init__()
self.type = type
self.log_message = log_message
self.display_message = display_message

View File

@ -43,7 +43,7 @@ class SongUsageDeleteForm(QtGui.QDialog, Ui_SongUsageDeleteDialog):
Constructor
"""
self.manager = manager
QtGui.QDialog.__init__(self, parent)
super(SongUsageDeleteForm, self).__init__(parent)
self.setupUi(self)
self.button_box.clicked.connect(self.on_button_box_clicked)

View File

@ -50,7 +50,7 @@ class SongUsageDetailForm(QtGui.QDialog, Ui_SongUsageDetailDialog):
"""
Initialise the form
"""
QtGui.QDialog.__init__(self, parent)
super(SongUsageDetailForm, self).__init__(parent)
self.plugin = plugin
self.setupUi(self)