MINOR: Added debug messages

git-svn-id: http://www.neo1973-germany.de/svn@90 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
kriss 2008-07-31 00:18:22 +00:00
parent ab9af88105
commit 25e1cb447f

View file

@ -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