Add info to status bar to show port and baud rate

This commit is contained in:
Raoul Snyman 2014-03-20 17:42:20 +02:00
parent 5a06899fd3
commit 979bdf583b

View File

@ -261,6 +261,7 @@ class MainWindow(QtGui.QMainWindow, UiMainWindow):
self.send_button.setEnabled(not self.device_closed) self.send_button.setEnabled(not self.device_closed)
if self.send_combobox.isEnabled(): if self.send_combobox.isEnabled():
self.send_combobox.setFocus() self.send_combobox.setFocus()
self.status_bar.showMessage('Connected to %s at %s baud' % (self.device.port, self.device.baudrate))
def on_close_action_triggered(self): def on_close_action_triggered(self):
self.device_closed = True self.device_closed = True