From c8a8ff0f662bc584d3cdd9731eadb920ea78b743 Mon Sep 17 00:00:00 2001 From: mer0m Date: Thu, 9 Mar 2017 17:26:21 +0100 Subject: [PATCH] modify gui --- datalogger-gui.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/datalogger-gui.py b/datalogger-gui.py index 1109909..8baae2c 100644 --- a/datalogger-gui.py +++ b/datalogger-gui.py @@ -98,22 +98,23 @@ class mainGui(): self.layout.addWidget(self.comboInst, 0, 0) self.address = QtGui.QLineEdit() - self.address.setMaximumWidth(120) - self.layout.addWidget(self.address, 99, 0) + self.address.setMinimumWidth(140) + self.address.setMaximumWidth(140) + self.layout.addWidget(self.address, 0, 1) self.startButton = QtGui.QPushButton() self.startButton.setText('Start log') - self.layout.addWidget(self.startButton, 99, 1) + self.layout.addWidget(self.startButton, 99, 0) self.startButton.setEnabled(False) self.stopButton = QtGui.QPushButton() self.stopButton.setText('Stop log') - self.layout.addWidget(self.stopButton, 99, 2) + self.layout.addWidget(self.stopButton, 99, 1) self.stopButton.setEnabled(False) self.textDisplay = QtGui.QLabel() self.textDisplay.setText('>>') - self.layout.addWidget(self.textDisplay, 100, 2) + self.layout.addWidget(self.textDisplay, 99, 2) self.setComboInst() self.updateSignal() @@ -158,8 +159,8 @@ class mainGui(): for vtype in vtypesAviables: self.chListVtypes[i].addItem(vtype) self.chListVtypes[i].setCurrentRow(0) - self.layout.addWidget(self.checkBoxChannels[i], i, 1) - self.layout.addWidget(self.chListVtypes[i], i, 2) + self.layout.addWidget(self.checkBoxChannels[i], i+3, 1) + self.layout.addWidget(self.chListVtypes[i], i+3, 2) self.checkBoxChannels[i].stateChanged.connect(self.infoSignal) self.chListVtypes[i].currentItemChanged.connect(self.infoSignal) -- 2.16.4