]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Make it compatible with python2.7
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 13 Jun 2016 12:12:58 +0000 (14:12 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 13 Jun 2016 12:12:58 +0000 (14:12 +0200)
helpers.py

index 6a2ed6f503e078ac8c8df3d1abd91ddc7cdf686b..76f993958e0677723dd679dc71b1cc5bb1ecf101 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 from pygame import *
 from math import pi
 
@@ -62,7 +63,7 @@ class Key:
         background_surface.blit(self.surface, self.position)
 
     def do_actions(self):
-        print("coucou" + self.key_sym)
+        print("coucou " + self.key_sym)
         pass
 
 keys = {
@@ -181,7 +182,7 @@ class RoundedRect:
         self.radius      = radius
 
     def surface(self):
-        rectangle       = filledRoundedRect(self.rect, self.outer_color, self.radius)
+        rectangle       = self.filledRoundedRect(self.rect, self.outer_color, self.radius)
 
         inner_rect      = Rect((
                 self.rect.left   + 2 * self.linewidth,