forked from openlp/openlp
pep8
This commit is contained in:
parent
f468fbb47d
commit
8ea0917230
@ -467,7 +467,7 @@ class PJLink1(QTcpSocket):
|
|||||||
return
|
return
|
||||||
self.send_busy = True
|
self.send_busy = True
|
||||||
log.debug('(%s) _sed_string(): Sending "%s"' % (self.ip, out))
|
log.debug('(%s) _sed_string(): Sending "%s"' % (self.ip, out))
|
||||||
log.debug('(%s) _send_string(): Queue = %s' % ( self.ip, self.send_queue))
|
log.debug('(%s) _send_string(): Queue = %s' % (self.ip, self.send_queue))
|
||||||
try:
|
try:
|
||||||
self.projectorNetwork.emit(S_NETWORK_SENDING)
|
self.projectorNetwork.emit(S_NETWORK_SENDING)
|
||||||
sent = self.write(out)
|
sent = self.write(out)
|
||||||
@ -637,11 +637,11 @@ class PJLink1(QTcpSocket):
|
|||||||
Error status. See PJLink Specifications for format.
|
Error status. See PJLink Specifications for format.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
dontcare = int(data)
|
datacheck = int(data)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# Bad data - ignore
|
# Bad data - ignore
|
||||||
return
|
return
|
||||||
if int(data) == 0:
|
if datacheck == 0:
|
||||||
self.projector_errors = None
|
self.projector_errors = None
|
||||||
else:
|
else:
|
||||||
self.projector_errors = {}
|
self.projector_errors = {}
|
||||||
|
@ -259,7 +259,6 @@ class ProjectorManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ProjectorMa
|
|||||||
self.projector_form.edit_page.editProjector.connect(self.edit_projector_from_wizard)
|
self.projector_form.edit_page.editProjector.connect(self.edit_projector_from_wizard)
|
||||||
self.projector_list_widget.itemSelectionChanged.connect(self.update_icons)
|
self.projector_list_widget.itemSelectionChanged.connect(self.update_icons)
|
||||||
|
|
||||||
|
|
||||||
def context_menu(self, point):
|
def context_menu(self, point):
|
||||||
"""
|
"""
|
||||||
Build the Right Click Context menu and set state.
|
Build the Right Click Context menu and set state.
|
||||||
|
Loading…
Reference in New Issue
Block a user