auf gui2.ui umbenannt

This commit is contained in:
jens 2022-08-29 22:03:14 +02:00
parent dc144acdb1
commit 19ab015728
7 changed files with 170 additions and 9 deletions

View File

@ -5,4 +5,47 @@
___
![](jens.jpg)
<img src="jens.jpg" width="200">
<br>
---
> Aufbau
>
> - Syringe
>>
> - Photomultiplyer
>
> **Abbau**
This is a python THing
lets do it now
`ok in an imperial way` then
I Love My **[science](https://science.jefro.de)**
#### Entwicklung
```
- [ ] Juni 2022
- [ ] This creates an Environment for the Software based on
- [ ] poseidon https://github.com/pachterlab/poseidon
- [ ] PyQtGraph https://www.pyqtgraph.org/
conda create --name piPyGra
conda activate piPyGra
conda install -c conda-forge pyqtgraph
conda install pyserial
pip install pyinstaller pyqt5
pip install PyQtWebEngine
.... work ...
conda deactivate
conda activate PiPyGra
Ananconda prompt designer
pyuic5 -x gui2.ui -o gui2.py
```

View File

@ -5,3 +5,47 @@
___
<img src="jens.jpg" width="200">
<br>
---
> Aufbau
>
> - Syringe
>>
> - Photomultiplyer
>
> **Abbau**
This is a python THing
lets do it now
`ok in an imperial way` then
I Love My **[science](https://science.jefro.de)**
#### Entwicklung
```
- [ ] Juni 2022
- [ ] This creates an Environment for the Software based on
- [ ] poseidon https://github.com/pachterlab/poseidon
- [ ] PyQtGraph https://www.pyqtgraph.org/
conda create --name piPyGra
conda activate piPyGra
conda install -c conda-forge pyqtgraph
conda install pyserial
pip install pyinstaller pyqt5
pip install PyQtWebEngine
.... work ...
conda deactivate
conda activate PiPyGra
Ananconda prompt designer
pyuic5 -x gui2.ui -o gui2.py
```

View File

@ -5,5 +5,44 @@
<li>naja</li>
</ol>
<hr />
<p><img src="jens.jpg" alt="" /></p>
<img src="jens.jpg" width="200">
<br>
<hr />
<blockquote>
<p>Aufbau</p>
<ul>
<li>Syringe</li>
</ul>
<blockquote>
</blockquote>
<ul>
<li>Photomultiplyer</li>
</ul>
<p><strong>Abbau</strong></p>
</blockquote>
<pre><code>This is a python THing
lets do it now
</code></pre>
<p><code>ok in an imperial way</code> then</p>
<p>I Love My <strong><a href="https://science.jefro.de">science</a></strong></p>
<h4>Entwicklung</h4>
<pre><code>- [ ] Juni 2022
- [ ] This creates an Environment for the Software based on
- [ ] poseidon https://github.com/pachterlab/poseidon
- [ ] PyQtGraph https://www.pyqtgraph.org/
conda create --name piPyGra
conda activate piPyGra
conda install -c conda-forge pyqtgraph
conda install pyserial
pip install pyinstaller pyqt5
pip install PyQtWebEngine
.... work ...
conda deactivate
conda activate PiPyGra
Ananconda prompt designer
pyuic5 -x gui2.ui -o gui2.py
</code></pre>
</body></html>

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'poseidon_controller_gui2.ui'
# Form implementation generated from reading ui file 'gui2.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
@ -824,6 +824,9 @@ class Ui_MainWindow(object):
self.pushButton_3 = QtWidgets.QPushButton(self.rheo)
self.pushButton_3.setObjectName("pushButton_3")
self.horizontalLayout_19.addWidget(self.pushButton_3)
self.label_26 = QtWidgets.QLabel(self.rheo)
self.label_26.setObjectName("label_26")
self.horizontalLayout_19.addWidget(self.label_26)
self.pushButton_4 = QtWidgets.QPushButton(self.rheo)
self.pushButton_4.setObjectName("pushButton_4")
self.horizontalLayout_19.addWidget(self.pushButton_4)
@ -873,7 +876,7 @@ class Ui_MainWindow(object):
self.menuBar.addAction(self.menuFile.menuAction())
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(4)
self.tabWidget.setCurrentIndex(3)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
@ -957,6 +960,7 @@ class Ui_MainWindow(object):
self.pushButton_2.setText(_translate("MainWindow", "close port"))
self.checkBox_3.setText(_translate("MainWindow", "load"))
self.pushButton_3.setText(_translate("MainWindow", "Home"))
self.label_26.setText(_translate("MainWindow", "left"))
self.pushButton_4.setText(_translate("MainWindow", "inject.."))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.rheo), _translate("MainWindow", "Counter"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Doku"))

View File

@ -30,7 +30,7 @@
<enum>QTabWidget::Triangular</enum>
</property>
<property name="currentIndex">
<number>4</number>
<number>3</number>
</property>
<property name="iconSize">
<size>
@ -1526,6 +1526,13 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_26">
<property name="text">
<string>left</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_4">
<property name="text">

View File

@ -153,10 +153,12 @@ class MainWindow2( MainWindow):
if (xx > 7) or (xx<0):
cmd=str(xx)+'\r\n'
self.sendToRheo(cmd)
self.getFromRheo()
def sendRheoHome(self):
cmd=str(3)+'\r\n'
self.sendToRheo(cmd)
self.getFromRheo()
def sendRheoLoad(self):
cmd=str(1)+'\r\n'
@ -172,17 +174,39 @@ class MainWindow2( MainWindow):
thread.start()
def setwhatsleft(self,xx):
print (f'that left {xx} ')
#print (f'that left {xx} ')
self.ui.label_26.setText(f'left {xx}')
def sendRheo(self, sendStr):
self.rheo_serial.flushInput()
self.rheo_serial.write(sendStr.encode('utf-8'))
#cmd=str(5)+'\r\n'
#time.sleep(1)
#self.rheo_serial.write(cmd.encode('utf-8'))
#time.sleep(1)
#inp = self.rheo_serial.readline().decode('utf-8')
#print(inp)
#self.leftsignal.emit(float(inp))
def getFromRheo(self):
thread = Thread(self.getRheoVolume)
thread.finished.connect(lambda:self.thread_finished(thread))
thread.start()
def getRheoVolume(self):
time.sleep(1)
self.rheo_serial.flushInput()
cmd = str(5)+'\r\n'
self.rheo_serial.write(sendStr.encode('utf-8'))
inp = self.rheo_serial.readline().decode('utf')
self.rheo_serial.write(cmd.encode('utf-8'))
time.sleep(1)
inp = self.rheo_serial.readline().decode('utf-8')
print(inp)
self.leftsignal.emit(float(inp))
def connectESP32(self):
self.esp32_port = self.ui.rheo_port_comboBox.currentText()
self.statusBar().showMessage("You clicked CONNECT TO Esp32")