mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-07 20:34:00 +02:00
use old formatting #2
This commit is contained in:
parent
46ce74216c
commit
03006e9d37
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ class ModuleAWidget(QWidget):
|
|||
|
||||
def read_inputs(self):
|
||||
r = self.dev.read()
|
||||
v = r[0]/1023.0 * 3.3
|
||||
self.ui.labelV.setText('{:0.3f} V'.format(v))
|
||||
v = r[1]/1023.0 * 3.3
|
||||
self.ui.labelV.setText('%0.3f V' % v)
|
||||
self.ui.progressV.setValue(1000*v)
|
||||
|
||||
class ModuleA():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue