diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-10-06 03:03:13 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-10-06 03:03:13 (GMT) |
commit | b8e3ab223ad1c3b5dbff836c6993c8e772e34600 (patch) | |
tree | 56280f453a0b009c80017536f3ae6dd9a5f1de30 /bounce.py | |
parent | b28cd817414248492c44c07227248c8204612a28 (diff) |
pep8 cleanup
Diffstat (limited to 'bounce.py')
-rw-r--r-- | bounce.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -194,7 +194,8 @@ class Bounce(): for i in range(8): self.cells.append(Sprite( self.sprites, 0, 0, _svg_str_to_pixbuf(svg_from_file( - os.path.join(path, 'basketball%d.svg' % (i + 1)))))) + os.path.join(path, + 'basketball%d.svg' % (i + 1)))))) for spr in self.cells: spr.set_layer(1) spr.move((0, self.height)) # move animation cells off screen @@ -402,12 +403,12 @@ class Bounce(): if saw_a_fraction: self.label = fstr else: - self.label = fstr.strip().strip('%').strip()+'/100' + self.label = fstr.strip().strip('%').strip() + '/100' else: # percentage if not saw_a_fraction: self.label = fstr else: - self.label = str(int(self.fraction * 100 + 0.5))+'%' + self.label = str(int(self.fraction * 100 + 0.5)) + '%' self.activity.reset_label(self.label) self.ball.set_label(self.label) |