From 25e1cb447f9204d2e65f5b521a503c845fbc501d Mon Sep 17 00:00:00 2001 From: kriss Date: Thu, 31 Jul 2008 00:18:22 +0000 Subject: [PATCH] MINOR: Added debug messages git-svn-id: http://www.neo1973-germany.de/svn@90 46df4e5c-bc4e-4628-a0fc-830ba316316d --- SettingsGUI/trunk/src/settingsgui/BatteryPanel.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SettingsGUI/trunk/src/settingsgui/BatteryPanel.py b/SettingsGUI/trunk/src/settingsgui/BatteryPanel.py index 6d886ea..7f5dac5 100644 --- a/SettingsGUI/trunk/src/settingsgui/BatteryPanel.py +++ b/SettingsGUI/trunk/src/settingsgui/BatteryPanel.py @@ -75,9 +75,11 @@ class BatteryPanel(gtk.VBox): self.q = self.f.readline().rstrip('\n') except(IOError): print "ERROR: could not read capacity!" - # self.q = "0" + self.q = "0" finally: self.f.close() + + # print "q was %s" % self.q return (int(self.q)) # Check current battery voltage @@ -145,7 +147,7 @@ class BatteryPanel(gtk.VBox): gtk.VBox.__init__(self, False, 0) self.v = 0; - self.q = 0; + #self.q = 0; # add a VBox