forked from openlp/openlp
changed constructor
This commit is contained in:
parent
0b22f36e6c
commit
cd91e4dcbf
@ -65,11 +65,11 @@ class Display(QtGui.QGraphicsView):
|
|||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
if live:
|
if live:
|
||||||
QtGui.QGraphicsView.__init__(self)
|
super(Display, sef).__init__()
|
||||||
# Overwrite the parent() method.
|
# Overwrite the parent() method.
|
||||||
self.parent = lambda: parent
|
self.parent = lambda: parent
|
||||||
else:
|
else:
|
||||||
QtGui.QGraphicsView.__init__(self, parent)
|
super(Display, self).__init__(parent)
|
||||||
self.is_live = live
|
self.is_live = live
|
||||||
self.controller = controller
|
self.controller = controller
|
||||||
self.screen = {}
|
self.screen = {}
|
||||||
@ -126,7 +126,7 @@ class MainDisplay(Display):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
Display.__init__(self, parent, live, controller)
|
super(MainDisplay, self).__init__(parent, live, controller)
|
||||||
self.screens = ScreenList()
|
self.screens = ScreenList()
|
||||||
self.rebuild_css = False
|
self.rebuild_css = False
|
||||||
self.hide_mode = None
|
self.hide_mode = None
|
||||||
@ -536,7 +536,7 @@ class AudioPlayer(QtCore.QObject):
|
|||||||
The parent widget.
|
The parent widget.
|
||||||
"""
|
"""
|
||||||
log.debug(u'AudioPlayer Initialisation started')
|
log.debug(u'AudioPlayer Initialisation started')
|
||||||
QtCore.QObject.__init__(self, parent)
|
super(AudioPlayer, self).__init__(parent)
|
||||||
self.currentIndex = -1
|
self.currentIndex = -1
|
||||||
self.playlist = []
|
self.playlist = []
|
||||||
self.repeat = False
|
self.repeat = False
|
||||||
|
Loading…
Reference in New Issue
Block a user