[tuxdroid-svn] r635 - in software/gadgets/battery_monitor/trunk: . Battery_monitor_svn Battery_moni
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2007-10-18 14:44:31
|
Author: Paul_R Date: 2007-10-18 16:44:01 +0200 (Thu, 18 Oct 2007) New Revision: 635 Modified: software/gadgets/battery_monitor/trunk/Battery_monitor.tgf software/gadgets/battery_monitor/trunk/Battery_monitor_svn/Scripts/Python/Battery_class.py software/gadgets/battery_monitor/trunk/Battery_monitor_svn/about.xml software/gadgets/battery_monitor/trunk/Battery_monitor_svn/settings.xml software/gadgets/battery_monitor/trunk/Battery_monitor_svn/strings.xml Log: * Compatibility with python < 2.5 Modified: software/gadgets/battery_monitor/trunk/Battery_monitor.tgf =================================================================== (Binary files differ) Modified: software/gadgets/battery_monitor/trunk/Battery_monitor_svn/Scripts/Python/Battery_class.py =================================================================== --- software/gadgets/battery_monitor/trunk/Battery_monitor_svn/Scripts/Python/Battery_class.py 2007-10-18 14:41:03 UTC (rev 634) +++ software/gadgets/battery_monitor/trunk/Battery_monitor_svn/Scripts/Python/Battery_class.py 2007-10-18 14:44:01 UTC (rev 635) @@ -205,7 +205,7 @@ self.context.fill() -class Measure(): +class Measure(object): def __init__(self, sample, rate): self.rate = rate self.rate_backup = self.rate Modified: software/gadgets/battery_monitor/trunk/Battery_monitor_svn/about.xml =================================================================== --- software/gadgets/battery_monitor/trunk/Battery_monitor_svn/about.xml 2007-10-18 14:41:03 UTC (rev 634) +++ software/gadgets/battery_monitor/trunk/Battery_monitor_svn/about.xml 2007-10-18 14:44:01 UTC (rev 635) @@ -2,6 +2,6 @@ <about> <gadget_author type='str'>Paul Rathgeb</gadget_author> <gadget_version type='str'>0.0.1</gadget_version> + <gadget_name type='str'>battery_monitor</gadget_name> <gadget_description type='str'>Battery monitor for tux droid</gadget_description> - <gadget_name type='str'>battery_monitor</gadget_name> </about> Modified: software/gadgets/battery_monitor/trunk/Battery_monitor_svn/settings.xml =================================================================== --- software/gadgets/battery_monitor/trunk/Battery_monitor_svn/settings.xml 2007-10-18 14:41:03 UTC (rev 634) +++ software/gadgets/battery_monitor/trunk/Battery_monitor_svn/settings.xml 2007-10-18 14:44:01 UTC (rev 635) @@ -16,7 +16,9 @@ <x type='int'>506</x> </widget> <conf> - <visible type='bool'>False</visible> + <y type='int'>49</y> + <visible type='bool'>True</visible> + <x type='int'>0</x> </conf> </gui_state> <language type='str'>en_US</language> Modified: software/gadgets/battery_monitor/trunk/Battery_monitor_svn/strings.xml =================================================================== --- software/gadgets/battery_monitor/trunk/Battery_monitor_svn/strings.xml 2007-10-18 14:41:03 UTC (rev 634) +++ software/gadgets/battery_monitor/trunk/Battery_monitor_svn/strings.xml 2007-10-18 14:44:01 UTC (rev 635) @@ -24,7 +24,7 @@ <gui_conf_cancel_bt type='str'>Cancel</gui_conf_cancel_bt> <widget_lblBoth type='str'>Both direction</widget_lblBoth> <gui_conf_rate_lb type='str'>Refresh rate :</gui_conf_rate_lb> - <normal type='str'>The level of the batteries is good</normal> + <conf_lblType type='str'>Type</conf_lblType> <mainscript type='str'>I've found the light !</mainscript> <conf_btnRemove type='str'>Remove</conf_btnRemove> <gui_conf_delay_lb type='str'>Delay (sec)</gui_conf_delay_lb> @@ -39,20 +39,20 @@ <widget_lblDisplayThreshold type='str'>Display threshold on graph</widget_lblDisplayThreshold> <conf_btnModify type='str'>Modify</conf_btnModify> <widget_lblEvent type='str'>Event</widget_lblEvent> - <conf_lblDecrease type='str'>Decrease</conf_lblDecrease> + <normal type='str'>The level of the batteries is good</normal> <widget_lblIncrease type='str'>Increasing</widget_lblIncrease> <widget_lblRaise type='str'>Raise</widget_lblRaise> <conf_btnAdd type='str'>Add</conf_btnAdd> <widget_lblDecrease type='str'>Decreasing</widget_lblDecrease> <gui_conf_sample_lb type='str'>Sample :</gui_conf_sample_lb> <gui_conf_current_bind_lb type='str'>Current</gui_conf_current_bind_lb> - <conf_lblType type='str'>Type</conf_lblType> <conf_lblNotifiedBehavior type='str'>Notified</conf_lblNotifiedBehavior> <gui_conf_author_lb type='str'>Author</gui_conf_author_lb> <widget_lblDrop type='str'>Drop</widget_lblDrop> <MainBehavior type='str'>Main behavior</MainBehavior> <absolute_threshold type='str'>Weak batteries </absolute_threshold> <lblMotors type='str'>Disable measure when the motors are running</lblMotors> + <conf_lblDecrease type='str'>Decrease</conf_lblDecrease> <conf_lblDefaultBehavior type='str'>Default behavior</conf_lblDefaultBehavior> <conf_lblBehavior type='str'>Behavior script</conf_lblBehavior> <gui_conf_remote_set_bt type='str'>Set</gui_conf_remote_set_bt> |