Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2012-04-10 16:22:07 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-04-10 16:22:07 (GMT)
commit46f7d65d6bef8ead172b54011e60c1e1eee1c28c (patch)
tree2aad4382b181a792f2063247c052c84e5df53894
parent6b264bcdca691cfe8eb5d5939a6fe534102af712 (diff)
coding utf-8 fixes
-rwxr-xr-xactivity.py3
-rw-r--r--game.py2
-rw-r--r--maze.py2
-rw-r--r--olpcgames/activity.py4
-rw-r--r--player.py4
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
diff --git a/game.py b/game.py
index e9ec3b4..f710d92 100644
--- a/game.py
+++ b/game.py
@@ -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/maze.py b/maze.py
index 8fec99c..422a546 100644
--- a/maze.py
+++ b/maze.py
@@ -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
diff --git a/player.py b/player.py
index 4ece679..5e9e8db 100644
--- a/player.py
+++ b/player.py
@@ -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):