Commit c8a8ff0f662bc584d3cdd9731eadb920ea78b743
1 parent
3a0af875bd
Exists in
master
modify gui
Showing 1 changed file with 8 additions and 7 deletions Side-by-side Diff
datalogger-gui.py
| ... | ... | @@ -98,22 +98,23 @@ |
| 98 | 98 | self.layout.addWidget(self.comboInst, 0, 0) |
| 99 | 99 | |
| 100 | 100 | self.address = QtGui.QLineEdit() |
| 101 | - self.address.setMaximumWidth(120) | |
| 102 | - self.layout.addWidget(self.address, 99, 0) | |
| 101 | + self.address.setMinimumWidth(140) | |
| 102 | + self.address.setMaximumWidth(140) | |
| 103 | + self.layout.addWidget(self.address, 0, 1) | |
| 103 | 104 | |
| 104 | 105 | self.startButton = QtGui.QPushButton() |
| 105 | 106 | self.startButton.setText('Start log') |
| 106 | - self.layout.addWidget(self.startButton, 99, 1) | |
| 107 | + self.layout.addWidget(self.startButton, 99, 0) | |
| 107 | 108 | self.startButton.setEnabled(False) |
| 108 | 109 | |
| 109 | 110 | self.stopButton = QtGui.QPushButton() |
| 110 | 111 | self.stopButton.setText('Stop log') |
| 111 | - self.layout.addWidget(self.stopButton, 99, 2) | |
| 112 | + self.layout.addWidget(self.stopButton, 99, 1) | |
| 112 | 113 | self.stopButton.setEnabled(False) |
| 113 | 114 | |
| 114 | 115 | self.textDisplay = QtGui.QLabel() |
| 115 | 116 | self.textDisplay.setText('>>') |
| 116 | - self.layout.addWidget(self.textDisplay, 100, 2) | |
| 117 | + self.layout.addWidget(self.textDisplay, 99, 2) | |
| 117 | 118 | |
| 118 | 119 | self.setComboInst() |
| 119 | 120 | self.updateSignal() |
| ... | ... | @@ -158,8 +159,8 @@ |
| 158 | 159 | for vtype in vtypesAviables: |
| 159 | 160 | self.chListVtypes[i].addItem(vtype) |
| 160 | 161 | self.chListVtypes[i].setCurrentRow(0) |
| 161 | - self.layout.addWidget(self.checkBoxChannels[i], i, 1) | |
| 162 | - self.layout.addWidget(self.chListVtypes[i], i, 2) | |
| 162 | + self.layout.addWidget(self.checkBoxChannels[i], i+3, 1) | |
| 163 | + self.layout.addWidget(self.chListVtypes[i], i+3, 2) | |
| 163 | 164 | self.checkBoxChannels[i].stateChanged.connect(self.infoSignal) |
| 164 | 165 | self.chListVtypes[i].currentItemChanged.connect(self.infoSignal) |
| 165 | 166 |