From 13c9a69de1061d4bdaab2fb43c11c6fcd6954246 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Thu, 18 Jul 2013 16:14:29 +0200 Subject: [PATCH] changed constructors --- openlp/core/ui/media/mediacontroller.py | 2 +- openlp/core/ui/media/phononplayer.py | 2 +- openlp/core/ui/splashscreen.py | 2 +- openlp/core/ui/themeform.py | 2 +- openlp/core/ui/themelayoutform.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openlp/core/ui/media/mediacontroller.py b/openlp/core/ui/media/mediacontroller.py index 71f2b4b10..b6c27e9d2 100644 --- a/openlp/core/ui/media/mediacontroller.py +++ b/openlp/core/ui/media/mediacontroller.py @@ -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 diff --git a/openlp/core/ui/media/phononplayer.py b/openlp/core/ui/media/phononplayer.py index 2a6eb77ba..8f91abb28 100644 --- a/openlp/core/ui/media/phononplayer.py +++ b/openlp/core/ui/media/phononplayer.py @@ -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 diff --git a/openlp/core/ui/splashscreen.py b/openlp/core/ui/splashscreen.py index c6f259499..be7751769 100644 --- a/openlp/core/ui/splashscreen.py +++ b/openlp/core/ui/splashscreen.py @@ -41,7 +41,7 @@ class SplashScreen(QtGui.QSplashScreen): """ Constructor """ - QtGui.QSplashScreen.__init__(self) + super(SplashScreen, self).__init__() self.setupUi() def setupUi(self): diff --git a/openlp/core/ui/themeform.py b/openlp/core/ui/themeform.py index 007932f6e..b4dbabd54 100644 --- a/openlp/core/ui/themeform.py +++ b/openlp/core/ui/themeform.py @@ -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 diff --git a/openlp/core/ui/themelayoutform.py b/openlp/core/ui/themelayoutform.py index a8cb7cb84..fb982ecd3 100644 --- a/openlp/core/ui/themelayoutform.py +++ b/openlp/core/ui/themelayoutform.py @@ -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):