From 542cdd78cb3eb914a177a98a256de3c0e1a88797 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Thu, 18 Jul 2013 13:19:20 +0200 Subject: [PATCH] changed constructor --- openlp/core/lib/mediamanageritem.py | 2 +- openlp/core/lib/searchedit.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/core/lib/mediamanageritem.py b/openlp/core/lib/mediamanageritem.py index 973d457bb..a4c68e3ce 100644 --- a/openlp/core/lib/mediamanageritem.py +++ b/openlp/core/lib/mediamanageritem.py @@ -82,7 +82,7 @@ class MediaManagerItem(QtGui.QWidget): """ Constructor to create the media manager item. """ - QtGui.QWidget.__init__(self) + super(MediaManagerItem, self).__init__() self.hide() self.whitespace = re.compile(r'[\W_]+', re.UNICODE) self.plugin = plugin diff --git a/openlp/core/lib/searchedit.py b/openlp/core/lib/searchedit.py index a0c51cb74..6ebc6de1a 100644 --- a/openlp/core/lib/searchedit.py +++ b/openlp/core/lib/searchedit.py @@ -46,7 +46,7 @@ class SearchEdit(QtGui.QLineEdit): """ Constructor. """ - QtGui.QLineEdit.__init__(self, parent) + super(SearchEdit, self).__init__(parent) self._current_search_type = -1 self.clear_button = QtGui.QToolButton(self) self.clear_button.setIcon(build_icon(u':/system/clear_shortcut.png'))