forked from openlp/openlp
updated constructor
This commit is contained in:
commit
318feda38f
@ -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')
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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):
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user