Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorSai Vineet <saivineet89@gmail.com>2013-12-17 18:05:21 (GMT)
committer Sai Vineet <saivineet89@gmail.com>2013-12-17 18:05:21 (GMT)
commit0518bf2b459f0732b06e824212bae449c0312795 (patch)
treed0048ad863d42a2a56b45128216cfae8c41782ee /activity.py
parent1800bbcf06aa133ba431c4792a5b56ca3fda5ee9 (diff)
pep8
pep8'ed as much code as possible.
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/activity.py b/activity.py
index 2d34eee..856be1c 100644
--- a/activity.py
+++ b/activity.py
@@ -24,7 +24,6 @@ import gtk
import csv
import tempfile
import json
-from StringIO import StringIO
from gettext import gettext as _
import logging
@@ -67,18 +66,18 @@ class PhysicsActivity(activity.Activity):
self.__configure_cb)
logging.debug(os.path.join(
- activity.get_activity_root(), 'data', 'data'))
+ activity.get_activity_root(), 'data', 'data'))
self._canvas.run_pygame(self.game.run)
def __configure_cb(self, event):
''' Screen size has changed '''
self.write_file(os.path.join(
- activity.get_activity_root(), 'data', 'data'))
+ activity.get_activity_root(), 'data', 'data'))
pygame.display.set_mode((gtk.gdk.screen_width(),
gtk.gdk.screen_height() - 2 * GRID_CELL_SIZE),
pygame.RESIZABLE)
self.read_file(os.path.join(
- activity.get_activity_root(), 'data', 'data'))
+ activity.get_activity_root(), 'data', 'data'))
self.game.run(True)
def read_file(self, file_path):
@@ -264,7 +263,7 @@ class PhysicsActivity(activity.Activity):
clear_all_alert = ConfirmationAlert()
clear_all_alert.props.title = _('Are You Sure?')
clear_all_alert.props.msg = \
- _('All your work will be discarded. This cannot be undone!')
+ _('All your work will be discarded. This cannot be undone!')
clear_all_alert.connect('response', clear_all_alert_cb)
self.add_alert(clear_all_alert)