diff --git a/openlp/core/lib/dockwidget.py b/openlp/core/lib/dockwidget.py index 15c116e0f..1966a55ed 100644 --- a/openlp/core/lib/dockwidget.py +++ b/openlp/core/lib/dockwidget.py @@ -49,7 +49,7 @@ class OpenLPDockWidget(QtGui.QDockWidget): Initialise the DockWidget """ log.debug(u'Initialise the %s widget' % name) - QtGui.QDockWidget.__init__(self, parent) + super(OpenLPDockWidget, self).__init__(parent) if name: self.setObjectName(name) if icon: diff --git a/openlp/core/lib/listwidgetwithdnd.py b/openlp/core/lib/listwidgetwithdnd.py index 5b15b8103..0f90228ea 100644 --- a/openlp/core/lib/listwidgetwithdnd.py +++ b/openlp/core/lib/listwidgetwithdnd.py @@ -44,7 +44,7 @@ class ListWidgetWithDnD(QtGui.QListWidget): """ Initialise the list widget """ - QtGui.QListWidget.__init__(self, parent) + super(ListWidgetWithDnD, self).__init__(parent) self.mimeDataText = name assert(self.mimeDataText)