forked from openlp/openlp
pep8 fixes
This commit is contained in:
parent
1333c2ff43
commit
d044821483
|
@ -827,7 +827,7 @@ class SlideController(DisplayController, RegistryProperties):
|
||||||
# take a copy not a link to the servicemanager copy.
|
# take a copy not a link to the servicemanager copy.
|
||||||
self.service_item = copy.copy(service_item)
|
self.service_item = copy.copy(service_item)
|
||||||
# Reset blanking if needed
|
# Reset blanking if needed
|
||||||
if old_item and self.is_live and (old_item.is_capable(ItemCapabilities.ProvidesOwnDisplay) or \
|
if old_item and self.is_live and (old_item.is_capable(ItemCapabilities.ProvidesOwnDisplay) or
|
||||||
self.service_item.is_capable(ItemCapabilities.ProvidesOwnDisplay)):
|
self.service_item.is_capable(ItemCapabilities.ProvidesOwnDisplay)):
|
||||||
self._reset_blank(self.service_item.is_capable(ItemCapabilities.ProvidesOwnDisplay))
|
self._reset_blank(self.service_item.is_capable(ItemCapabilities.ProvidesOwnDisplay))
|
||||||
if service_item.is_command():
|
if service_item.is_command():
|
||||||
|
|
|
@ -227,7 +227,7 @@ class PowerpointDocument(PresentationDocument):
|
||||||
"""
|
"""
|
||||||
log.debug('unblank_screen')
|
log.debug('unblank_screen')
|
||||||
try:
|
try:
|
||||||
# Powerpoint 2010 (14.0) has a bug that prevents unblanking from working,
|
# Powerpoint 2010 (14.0) has a bug that prevents unblanking from working,
|
||||||
# so we have to works around it by sending a keystroke to Powerpoint.
|
# so we have to works around it by sending a keystroke to Powerpoint.
|
||||||
# The keystroke 'U' should not have any bindings in Powerpoint so we use that
|
# The keystroke 'U' should not have any bindings in Powerpoint so we use that
|
||||||
if float(self.presentation.Application.Version) == 14.0:
|
if float(self.presentation.Application.Version) == 14.0:
|
||||||
|
|
Loading…
Reference in New Issue