aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-13 14:12:58 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-13 14:12:58 +0200
commit1df30f075c186c4c3d41d5f6014817b1b6b7b1ae (patch)
treea08e18b3fffbadbdecfb4680727fcc6059408752
parent189bf90cfc9401b4bc0f6f36c152a439626cef3a (diff)
downloadMusicSampler-1df30f075c186c4c3d41d5f6014817b1b6b7b1ae.tar.gz
MusicSampler-1df30f075c186c4c3d41d5f6014817b1b6b7b1ae.tar.zst
MusicSampler-1df30f075c186c4c3d41d5f6014817b1b6b7b1ae.zip
Make it compatible with python2.7
-rw-r--r--helpers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/helpers.py b/helpers.py
index 6a2ed6f..76f9939 100644
--- a/helpers.py
+++ b/helpers.py
@@ -1,3 +1,4 @@
1# -*- coding: utf-8 -*-
1from pygame import * 2from pygame import *
2from math import pi 3from math import pi
3 4
@@ -62,7 +63,7 @@ class Key:
62 background_surface.blit(self.surface, self.position) 63 background_surface.blit(self.surface, self.position)
63 64
64 def do_actions(self): 65 def do_actions(self):
65 print("coucou" + self.key_sym) 66 print("coucou " + self.key_sym)
66 pass 67 pass
67 68
68keys = { 69keys = {
@@ -181,7 +182,7 @@ class RoundedRect:
181 self.radius = radius 182 self.radius = radius
182 183
183 def surface(self): 184 def surface(self):
184 rectangle = filledRoundedRect(self.rect, self.outer_color, self.radius) 185 rectangle = self.filledRoundedRect(self.rect, self.outer_color, self.radius)
185 186
186 inner_rect = Rect(( 187 inner_rect = Rect((
187 self.rect.left + 2 * self.linewidth, 188 self.rect.left + 2 * self.linewidth,