diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-01-14 02:02:42 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-01-14 02:02:42 (GMT) |
commit | 8deac6e48c0657f3a1837d99d0190daabfc5c3ce (patch) | |
tree | 78d0bad19d7086d730e56431df1b804050cf3ffd | |
parent | 556ef21dabfdd4c7c056e89b268b4cf86d2869cf (diff) |
clean up
-rw-r--r-- | VisualMatchActivity.py | 1 | ||||
-rw-r--r-- | card.py | 4 | ||||
-rw-r--r-- | deck.py | 2 | ||||
-rw-r--r-- | game.py | 4 | ||||
-rw-r--r-- | gencards.py | 3 | ||||
-rw-r--r-- | grid.py | 2 | ||||
-rw-r--r-- | sprites.py | 3 | ||||
-rwxr-xr-x | visualmatch.py | 2 |
8 files changed, 9 insertions, 12 deletions
diff --git a/VisualMatchActivity.py b/VisualMatchActivity.py index d0e46b8..319830a 100644 --- a/VisualMatchActivity.py +++ b/VisualMatchActivity.py @@ -535,7 +535,6 @@ class VisualMatchActivity(activity.Activity): self.metadata['sun'] = self.vmw.word_lists[2][1] self.metadata['earth'] = self.vmw.word_lists[2][2] self.metadata['editing_word_list'] = self.vmw.editing_word_list - print "saving editing_word_list %s" % (str(self.vmw.editing_word_list)) self.metadata['mime_type'] = 'application/x-visualmatch' f = file(file_path, 'w') f.write(self._dump()) @@ -1,5 +1,5 @@ -#Copyright (c) 2009, Walter Bender -#Copyright (c) 2009, Michele Pratusevich +#Copyright (c) 2009,10 Walter Bender +#Copyright (c) 2009 Michele Pratusevich # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1,4 +1,4 @@ -#Copyright (c) 2009, Walter Bender +#Copyright (c) 2009,10 Walter Bender # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -107,13 +107,13 @@ class Game(): self.deck.index = deck_index _deck_start = ROW*COL+3 _deck_stop = _deck_start+self.deck.count() + self._restore_word_list( + saved_state[_deck_stop+3*self.matches:]) self.deck.restore(saved_state[_deck_start:_deck_stop]) self.grid.restore(self.deck, saved_state[0:ROW*COL]) self._restore_selected(saved_state[ROW*COL:ROW*COL+3]) self._restore_matches( saved_state[_deck_stop:_deck_stop+3*self.matches]) - self._restore_word_list( - saved_state[_deck_stop+3*self.matches:]) elif not self.joiner(): _logger.debug("Starting new game.") self.deck = Deck(self.sprites, self.card_type, diff --git a/gencards.py b/gencards.py index d83cb55..b21c93d 100644 --- a/gencards.py +++ b/gencards.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -#Copyright (c) 2009, Walter Bender +#Copyright (c) 2009,10 Walter Bender # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -106,7 +106,6 @@ def svg_circle_of_dots(n, x, y, stroke, fill): ny = oy+cos(a)*r svg_string = "%s%f%s%f%s" % ("<g\n transform=\"translate(",x,", ",y, ")\">\n") - print svg_string for i in range(n): svg_string += svg_circle(nx,ny,3,stroke,fill,2) a += da @@ -1,4 +1,4 @@ -#Copyright (c) 2009, Walter Bender +#Copyright (c) 2009,10 Walter Bender # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- #Copyright (c) 2007-8, Playful Invention Company. -#Copyright (c) 2008-9, Walter Bender +#Copyright (c) 2008-10 Walter Bender #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal @@ -228,7 +228,6 @@ class Sprite: def label_width(self): max = 0 for i in range(len(self.labels)): - print "i %d" % (i) pl = self.sprites.canvas.create_pango_layout(self.labels[i]) self.fd.set_size(int(self.scale[i]*pango.SCALE)) pl.set_font_description(self.fd) diff --git a/visualmatch.py b/visualmatch.py index e38991d..9d5e2ff 100755 --- a/visualmatch.py +++ b/visualmatch.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -#Copyright (c) 2009, Walter Bender +#Copyright (c) 2009,10 Walter Bender # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by |