forked from openlp/openlp
Fix screen close
This commit is contained in:
parent
13766fc7c7
commit
643be2ca5e
@ -62,16 +62,15 @@ class MainDisplay(QtGui.QWidget):
|
|||||||
def frameView(self, frame):
|
def frameView(self, frame):
|
||||||
if self.displayBlank == False:
|
if self.displayBlank == False:
|
||||||
self.display.setPixmap(frame)
|
self.display.setPixmap(frame)
|
||||||
|
self.frame = frame
|
||||||
|
|
||||||
def blankDisplay(self):
|
def blankDisplay(self):
|
||||||
if self.displayBlank == False:
|
if self.displayBlank == False:
|
||||||
self.displayBlank = True
|
self.displayBlank = True
|
||||||
self.tempPixmap = self.display.pixmap()
|
|
||||||
self.display.setPixmap(self.blankFrame)
|
self.display.setPixmap(self.blankFrame)
|
||||||
else:
|
else:
|
||||||
self.displayBlank = False
|
self.displayBlank = False
|
||||||
self.frameView(self.tempPixmap)
|
self.frameView(self.frame)
|
||||||
self.tempPixmap = None
|
|
||||||
|
|
||||||
|
|
||||||
def kill(self):
|
def kill(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user