Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2014-07-10 21:06:50 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-07-14 11:00:09 (GMT)
commit711cda0d9a310c990142c242ce3d5724772450f3 (patch)
tree50fc9af9f513687b9a1687ef917c01e302fc0cab
parentcead2b4429499ac74df70a91a9ab79a090549a59 (diff)
Pep8 fixes
-rw-r--r--cardtable.py3
-rw-r--r--game.py2
-rw-r--r--messenger.py6
-rw-r--r--scoreboard.py5
4 files changed, 7 insertions, 9 deletions
diff --git a/cardtable.py b/cardtable.py
index 14f23c7..83d1b3d 100644
--- a/cardtable.py
+++ b/cardtable.py
@@ -176,14 +176,12 @@ class CardTable(Gtk.EventBox):
if self.load_mode:
self._set_load_mode(False)
self.show_all()
- #gc.collect()
def change_game(self, widget, data, grid):
if not self.first_load:
for card in self.cards.values():
self.table.remove(card)
del card
- #gc.collect()
self.load_game(None, data, grid)
def get_card_size(self, size_table):
@@ -198,7 +196,6 @@ class CardTable(Gtk.EventBox):
self.card_flipped(card)
def mouse_event(self, widget, event, coord):
- #self.table.grab_focus()
card = self.cards[coord[0], coord[1]]
identifier = self.cd2id.get(card)
self.emit('card-highlighted', identifier, True)
diff --git a/game.py b/game.py
index 1826cba..d615390 100644
--- a/game.py
+++ b/game.py
@@ -284,7 +284,7 @@ class MemorizeGame(GObject.GObject):
self.emit('flop-card', identifier2)
self.model.grid[identifier2]['state'] = '0'
- #if self.model.data['divided'] == '1':
+ # if self.model.data['divided'] == '1':
# self.card_highlighted(widget, -1, False)
self.set_sensitive(True)
self.flip_block = False
diff --git a/messenger.py b/messenger.py
index a8d45da..bddc73e 100644
--- a/messenger.py
+++ b/messenger.py
@@ -91,7 +91,7 @@ class Messenger(ExportedGObject):
def load_game(self, bus_names, grid, data, current_player, path):
self.ordered_bus_names = bus_names
self.player_id = bus_names.index(self._tube.get_unique_name())
- #self.game.load_waiting_list(list)
+ # self.game.load_waiting_list(list)
self._change_game_receiver(data['mode'], grid, data, path)
for i in range(len(self.game.players)):
@@ -206,7 +206,7 @@ class Messenger(ExportedGObject):
# last chunk
if part == numparts:
self.f.close()
- #file = self.files[filename]
+ # file = self.files[filename]
# Saves the zip in datastore
gameObject = datastore.create()
gameObject.metadata['title'] = title
@@ -214,7 +214,7 @@ class Messenger(ExportedGObject):
gameObject.metadata['icon-color'] = color
gameObject.file_path = self.temp_file
datastore.write(gameObject)
- #gameObject.destroy()
+ # gameObject.destroy()
# flip card methods
def flip_sender(self, widget, id):
diff --git a/scoreboard.py b/scoreboard.py
index a7cd756..5e66363 100644
--- a/scoreboard.py
+++ b/scoreboard.py
@@ -53,7 +53,7 @@ class Scoreboard(Gtk.EventBox):
self.players[buddy].change_game(len(grid))
def add_buddy(self, widget, buddy, score):
- ### FIXME: this breaks when the body is empty
+ # FIXME: this breaks when the body is empty
nick = buddy.props.nick
stroke_color, fill_color = buddy.props.color.split(',')
player = PlayerScoreboard(nick, fill_color, stroke_color, score)
@@ -62,7 +62,8 @@ class Scoreboard(Gtk.EventBox):
# remove widgets and add sorted
for child in self.vbox.get_children():
self.vbox.remove(child)
- for buddy in sorted(self.players.keys(), key=lambda buddy: buddy.props.nick):
+ for buddy in sorted(self.players.keys(),
+ key=lambda buddy: buddy.props.nick):
p = self.players[buddy]
self.vbox.pack_start(p, False, False, 0)