diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2012-04-10 16:22:07 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2012-04-10 16:22:07 (GMT) |
commit | 46f7d65d6bef8ead172b54011e60c1e1eee1c28c (patch) | |
tree | 2aad4382b181a792f2063247c052c84e5df53894 | |
parent | 6b264bcdca691cfe8eb5d5939a6fe534102af712 (diff) |
coding utf-8 fixes
-rwxr-xr-x | activity.py | 3 | ||||
-rw-r--r-- | game.py | 2 | ||||
-rw-r--r-- | maze.py | 2 | ||||
-rw-r--r-- | olpcgames/activity.py | 4 | ||||
-rw-r--r-- | player.py | 4 |
5 files changed, 12 insertions, 3 deletions
diff --git a/activity.py b/activity.py index fec3947..f6ef333 100755 --- a/activity.py +++ b/activity.py @@ -1,4 +1,5 @@ -import gtk +# -*- coding: utf-8 -*- + import olpcgames import pygame @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + # Maze.activity # A simple multi-player maze game for the XO laptop. # http://wiki.laptop.org/go/Maze @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + # Maze.activity # A simple multi-player maze game for the XO laptop. # http://wiki.laptop.org/go/Maze diff --git a/olpcgames/activity.py b/olpcgames/activity.py index 538ba13..53f0422 100644 --- a/olpcgames/activity.py +++ b/olpcgames/activity.py @@ -1,4 +1,6 @@ -"""Embeds the Canvas widget into a Sugar-specific Activity environment +#!/usr/bin/python +# -*- coding: utf-8 -*- +"""Embeds the Canvas widget into a Sugar-specific Activity environment""" The olpcgames.activity module encapsulates creation of a Pygame activity. Your Activity should inherit from this class. Simply setting some class @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + # Maze.activity # A simple multi-player maze game for the XO laptop. # http://wiki.laptop.org/go/Maze @@ -32,7 +34,7 @@ import os class Player: def __init__(self, buddy, shape='circle'): self.buddy = buddy - self.nick = buddy.props.nick + self.nick = buddy.props.nick.decode("utf-8") colors = buddy.props.color.split(",") def string2Color(str): |