Clear statusbar message on port close, tweak widget margins
This commit is contained in:
parent
868bce0626
commit
02cf9253e9
@ -56,14 +56,14 @@ class UiMainWindow(object):
|
|||||||
self.central_widget.setObjectName(from_utf8('central_widget'))
|
self.central_widget.setObjectName(from_utf8('central_widget'))
|
||||||
self.central_layout = QtGui.QVBoxLayout(self.central_widget)
|
self.central_layout = QtGui.QVBoxLayout(self.central_widget)
|
||||||
self.central_layout.setSpacing(0)
|
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.central_layout.setObjectName(from_utf8('central_layout'))
|
||||||
self.find_widget = QtGui.QWidget(main_window)
|
self.find_widget = QtGui.QWidget(main_window)
|
||||||
self.find_widget.setVisible(False)
|
self.find_widget.setVisible(False)
|
||||||
self.find_widget.setSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
|
self.find_widget.setSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
|
||||||
self.find_widget.setObjectName(from_utf8('find_widget'))
|
self.find_widget.setObjectName(from_utf8('find_widget'))
|
||||||
self.find_layout = QtGui.QHBoxLayout(self.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_layout.setObjectName(from_utf8('find_layout'))
|
||||||
self.find_combobox = SComboBox(self.find_widget)
|
self.find_combobox = SComboBox(self.find_widget)
|
||||||
self.find_combobox.setEditable(True)
|
self.find_combobox.setEditable(True)
|
||||||
@ -320,6 +320,7 @@ class MainWindow(QtGui.QMainWindow, UiMainWindow):
|
|||||||
self.device.close()
|
self.device.close()
|
||||||
self.send_combobox.setEnabled(not self.device_closed)
|
self.send_combobox.setEnabled(not self.device_closed)
|
||||||
self.send_button.setEnabled(not self.device_closed)
|
self.send_button.setEnabled(not self.device_closed)
|
||||||
|
self.status_bar.showMessage('')
|
||||||
|
|
||||||
def on_find_action_toggled(self, enabled):
|
def on_find_action_toggled(self, enabled):
|
||||||
self.find_widget.setVisible(enabled)
|
self.find_widget.setVisible(enabled)
|
||||||
|
Loading…
Reference in New Issue
Block a user