diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-07-06 01:48:03 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-07-06 01:48:03 (GMT) |
commit | a1b6625a6a05b1aa8e005420a2a783365827979e (patch) | |
tree | 4af84c19ac32fb574fcf733dce80f669a5384da8 /shell | |
parent | 05379e85c1ee8b2435739582e60c193f4b3cce92 (diff) |
Fix some style nitpicks
Diffstat (limited to 'shell')
-rw-r--r-- | shell/model/devices/battery.py | 10 | ||||
-rw-r--r-- | shell/view/devices/battery.py | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/shell/model/devices/battery.py b/shell/model/devices/battery.py index b74d6dc..cdb4994 100644 --- a/shell/model/devices/battery.py +++ b/shell/model/devices/battery.py @@ -25,10 +25,12 @@ _DISCHARGING_PROP = 'battery.rechargeable.is_discharging' class Device(device.Device): __gproperties__ = { - 'level' : (int, None, None, 0, 100, 0, - gobject.PARAM_READABLE), - 'charging' : (bool, None, None, False, gobject.PARAM_READABLE), - 'discharging' : (bool, None, None, False, gobject.PARAM_READABLE) + 'level' : (int, None, None, 0, 100, 0, + gobject.PARAM_READABLE), + 'charging' : (bool, None, None, False, + gobject.PARAM_READABLE), + 'discharging' : (bool, None, None, False, + gobject.PARAM_READABLE) } def __init__(self, udi): diff --git a/shell/view/devices/battery.py b/shell/view/devices/battery.py index 1628850..a4bb0bb 100644 --- a/shell/view/devices/battery.py +++ b/shell/view/devices/battery.py @@ -66,7 +66,7 @@ class BatteryPalette(Palette): def update_progress_bar(self, percent): self._level = percent - fraction = float(percent/100.0) + fraction = percent / 100.0 self._progress_bar.set_fraction(fraction) def update_charge_status(self, charging, discharging): |