pep8 and extra logging info

This commit is contained in:
Ken Roberts 2014-10-16 20:09:42 -07:00
parent dfcbaa8c28
commit 81f26dd9a3
2 changed files with 6 additions and 2 deletions

View File

@ -761,7 +761,10 @@ class PJLink1(QTcpSocket):
if abort: if abort:
self.change_status(E_NOT_CONNECTED) self.change_status(E_NOT_CONNECTED)
else: else:
self.change_status(S_NOT_CONNECTED) log.debug('(%s) disconnect_from_host() Current status %s' % (self.ip,
self._get_status(self.status_connect)[0]))
if self.status_connect != E_NOT_CONNECTED:
self.change_status(S_NOT_CONNECTED)
self.reset_information() self.reset_information()
self.projectorUpdateIcons.emit() self.projectorUpdateIcons.emit()

View File

@ -361,7 +361,8 @@ class ProjectorManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ProjectorMa
for item in source_list.keys(): for item in source_list.keys():
sort.append(item) sort.append(item)
sort.sort() sort.sort()
current = QtGui.QLabel(translate('OpenLP.ProjectorManager', 'Current source is %s' % source_list[projector.link.source])) current = QtGui.QLabel(translate('OpenLP.ProjectorManager', 'Current source is %s' %
source_list[projector.link.source]))
layout.addWidget(current) layout.addWidget(current)
for item in sort: for item in sort:
button = self._select_input_widget(parent=self, button = self._select_input_widget(parent=self,