From 02cf9253e9dbe192dd9950a872e06a91484b4099 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Thu, 10 Apr 2014 08:43:56 +0200 Subject: [PATCH] Clear statusbar message on port close, tweak widget margins --- colourterm/mainwindow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/colourterm/mainwindow.py b/colourterm/mainwindow.py index 4da42d8..4ba7cc1 100644 --- a/colourterm/mainwindow.py +++ b/colourterm/mainwindow.py @@ -56,14 +56,14 @@ class UiMainWindow(object): self.central_widget.setObjectName(from_utf8('central_widget')) self.central_layout = QtGui.QVBoxLayout(self.central_widget) self.central_layout.setSpacing(0) - self.central_layout.setContentsMargins(0, 4, 0, 0) + self.central_layout.setContentsMargins(0, 0, 0, 0) self.central_layout.setObjectName(from_utf8('central_layout')) self.find_widget = QtGui.QWidget(main_window) self.find_widget.setVisible(False) self.find_widget.setSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) self.find_widget.setObjectName(from_utf8('find_widget')) self.find_layout = QtGui.QHBoxLayout(self.find_widget) - self.find_layout.setContentsMargins(0, 0, 0, 4) + self.find_layout.setContentsMargins(0, 2, 0, 2) self.find_layout.setObjectName(from_utf8('find_layout')) self.find_combobox = SComboBox(self.find_widget) self.find_combobox.setEditable(True) @@ -320,6 +320,7 @@ class MainWindow(QtGui.QMainWindow, UiMainWindow): self.device.close() self.send_combobox.setEnabled(not self.device_closed) self.send_button.setEnabled(not self.device_closed) + self.status_bar.showMessage('') def on_find_action_toggled(self, enabled): self.find_widget.setVisible(enabled)