From 03006e9d377c3402787ff5c07b0d559595f648a6 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 1 May 2011 21:02:59 +0200 Subject: [PATCH] use old formatting #2 --- software/modules/ModuleA.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/modules/ModuleA.py b/software/modules/ModuleA.py index c40141a..09ac117 100644 --- a/software/modules/ModuleA.py +++ b/software/modules/ModuleA.py @@ -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():