do that iteration in relocate_windows the proper way

This commit is contained in:
eblade 2009-03-26 12:11:07 -04:00
parent 94a10bbfcf
commit 6d4c812b51

View File

@ -175,16 +175,9 @@ class Hud:
adj = self.adj_seats(self.hand, self.config) adj = self.adj_seats(self.hand, self.config)
loc = self.config.get_locations(self.table.site, self.max) loc = self.config.get_locations(self.table.site, self.max)
# TODO: is stat_windows getting converted somewhere from a list to a dict, for no good reason? # TODO: is stat_windows getting converted somewhere from a list to a dict, for no good reason?
for i, w in enumerate(self.stat_windows): for i, w in enumerate(self.stat_windows.itervalues()):
#<<<<<<< HEAD:pyfpdb/Hud.py
if not type(w) == int: # how do we get pure ints in this list??
(x, y) = loc[adj[i]] (x, y) = loc[adj[i]]
w.relocate(x, y) w.relocate(x, y)
#=======
# (x, y) = loc[adj[i]]
# self.stat_windows[w].relocate(x, y)
#
#>>>>>>> 7c0d2eb6c664cfd8122b975e58438cfd158ee398:pyfpdb/Hud.py
return True return True
def on_button_press(self, widget, event): def on_button_press(self, widget, event):