changed constructors

This commit is contained in:
Andreas Preikschat 2013-07-18 16:14:29 +02:00
parent 3409c491fe
commit 13c9a69de1
5 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ class MediaSlider(QtGui.QSlider):
"""
Constructor
"""
QtGui.QSlider.__init__(self, direction)
super(MediaSlider, self).__init__(direction)
self.manager = manager
self.controller = controller

View File

@ -87,7 +87,7 @@ class PhononPlayer(MediaPlayer):
"""
Constructor
"""
MediaPlayer.__init__(self, parent, u'phonon')
super(PhononPlayer, self).__init__(parent, u'phonon')
self.original_name = u'Phonon'
self.display_name = u'&Phonon'
self.parent = parent

View File

@ -41,7 +41,7 @@ class SplashScreen(QtGui.QSplashScreen):
"""
Constructor
"""
QtGui.QSplashScreen.__init__(self)
super(SplashScreen, self).__init__()
self.setupUi()
def setupUi(self):

View File

@ -58,7 +58,7 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
``parent``
The QWidget-derived parent of the wizard.
"""
QtGui.QWizard.__init__(self, parent)
super(ThemeForm, self).__init__(parent)
self.setupUi(self)
self.registerFields()
self.updateThemeAllowed = True

View File

@ -42,7 +42,7 @@ class ThemeLayoutForm(QtGui.QDialog, Ui_ThemeLayoutDialog):
"""
Constructor
"""
QtGui.QDialog.__init__(self, parent)
super(ThemeLayoutForm, self).__init__(parent)
self.setupUi(self)
def exec_(self, image):