[tuxdroid-svn] r603 - in software/gadgets/light_monitor/trunk: . Light_monitor/Scripts/Python/GUI/w
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2007-10-12 08:01:46
|
Author: Paul_R Date: 2007-10-12 10:01:17 +0200 (Fri, 12 Oct 2007) New Revision: 603 Modified: software/gadgets/light_monitor/trunk/Light_monitor.tgf software/gadgets/light_monitor/trunk/Light_monitor/Scripts/Python/GUI/widget/other.pyp Log: * Fix a bug in the widget window : It was possible to enter a change time lower than the refresh rate. Modified: software/gadgets/light_monitor/trunk/Light_monitor/Scripts/Python/GUI/widget/other.pyp =================================================================== --- software/gadgets/light_monitor/trunk/Light_monitor/Scripts/Python/GUI/widget/other.pyp 2007-10-11 15:13:12 UTC (rev 602) +++ software/gadgets/light_monitor/trunk/Light_monitor/Scripts/Python/GUI/widget/other.pyp 2007-10-12 08:01:17 UTC (rev 603) @@ -193,8 +193,8 @@ except: self.get_widget('txtTime').set_text('0.1') - if float(self.get_widget('txtTime').get_text()) < 0.1: - self.get_widget('txtTime').set_text('0.1') + if float(self.get_widget('txtTime').get_text()) < self.light_measure.rate: + self.get_widget('txtTime').set_text(str(self.light_measure.rate)) if float(self.get_widget('txtTime').get_text()) > self.light_measure.rate * self.light_measure.sample: self.get_widget('txtTime').set_text(str(self.light_measure.rate * self.light_measure.sample)) Modified: software/gadgets/light_monitor/trunk/Light_monitor.tgf =================================================================== (Binary files differ) |