forked from openlp/openlp
changed constructors
This commit is contained in:
parent
f5ce8e85f3
commit
59be78f20a
@ -37,7 +37,7 @@ class PPTViewer(QtGui.QWidget):
|
|||||||
Standalone Test Harness for the pptviewlib library
|
Standalone Test Harness for the pptviewlib library
|
||||||
"""
|
"""
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
QtGui.QWidget.__init__(self, parent)
|
super(PPTViewer, self).__init__(parent)
|
||||||
self.pptid = -1
|
self.pptid = -1
|
||||||
self.setWindowTitle(u'PowerPoint Viewer Test')
|
self.setWindowTitle(u'PowerPoint Viewer Test')
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ class EditVerseForm(QtGui.QDialog, Ui_EditVerseDialog):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
QtGui.QDialog.__init__(self, parent)
|
super(EditVerseForm, self).__init__(parent)
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
self.verse_text_edit.customContextMenuRequested.connect(self.context_menu)
|
self.verse_text_edit.customContextMenuRequested.connect(self.context_menu)
|
||||||
self.insert_button.clicked.connect(self.on_insert_button_clicked)
|
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__)
|
log.info(u'%s MediaFilesForm loaded', __name__)
|
||||||
|
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
QtGui.QDialog.__init__(self)
|
super(MediaFilesForm, self).__init__()
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
|
|
||||||
def populateFiles(self, files):
|
def populateFiles(self, files):
|
||||||
|
@ -60,7 +60,7 @@ class SongExportForm(OpenLPWizard):
|
|||||||
``plugin``
|
``plugin``
|
||||||
The songs 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
|
self.stop_export_flag = False
|
||||||
Registry().register_function(u'openlp_stop_wizard', self.stop_export)
|
Registry().register_function(u'openlp_stop_wizard', self.stop_export)
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ class SongReviewWidget(QtGui.QWidget):
|
|||||||
``song``
|
``song``
|
||||||
The Song which this SongReviewWidget should represent.
|
The Song which this SongReviewWidget should represent.
|
||||||
"""
|
"""
|
||||||
QtGui.QWidget.__init__(self, parent)
|
super(SongReviewWidget, self).__init__(parent)
|
||||||
self.song = song
|
self.song = song
|
||||||
self.setupUi()
|
self.setupUi()
|
||||||
self.retranslateUi()
|
self.retranslateUi()
|
||||||
|
@ -820,7 +820,7 @@ class OpenLyricsError(Exception):
|
|||||||
VerseError = 2
|
VerseError = 2
|
||||||
|
|
||||||
def __init__(self, type, log_message, display_message):
|
def __init__(self, type, log_message, display_message):
|
||||||
Exception.__init__(self)
|
super(OpenLyricsError, self).__init__()
|
||||||
self.type = type
|
self.type = type
|
||||||
self.log_message = log_message
|
self.log_message = log_message
|
||||||
self.display_message = display_message
|
self.display_message = display_message
|
||||||
|
@ -43,7 +43,7 @@ class SongUsageDeleteForm(QtGui.QDialog, Ui_SongUsageDeleteDialog):
|
|||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
self.manager = manager
|
self.manager = manager
|
||||||
QtGui.QDialog.__init__(self, parent)
|
super(SongUsageDeleteForm, self).__init__(parent)
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
self.button_box.clicked.connect(self.on_button_box_clicked)
|
self.button_box.clicked.connect(self.on_button_box_clicked)
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ class SongUsageDetailForm(QtGui.QDialog, Ui_SongUsageDetailDialog):
|
|||||||
"""
|
"""
|
||||||
Initialise the form
|
Initialise the form
|
||||||
"""
|
"""
|
||||||
QtGui.QDialog.__init__(self, parent)
|
super(SongUsageDetailForm, self).__init__(parent)
|
||||||
self.plugin = plugin
|
self.plugin = plugin
|
||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user