Back out mucked window dragging changes.

This commit is contained in:
Ray 2009-03-25 17:22:28 -04:00
parent 01bc1cebf1
commit 29bd0c2a7a
2 changed files with 0 additions and 8 deletions

View File

@ -178,7 +178,6 @@ class Hud:
if not type(w) == int: # how do we get pure ints in this list??
(x, y) = loc[adj[i]]
w.relocate(x, y)
[aw.relocate(self.table.x, self.table.y) for aw in self.aux_windows]
return True

View File

@ -442,13 +442,6 @@ class Flop_Mucked(Aux_Window):
self.positions[i] = widget.get_position()
self.rel_positions[i] = (self.positions[i][0] - self.hud.table.x, self.positions[i][1] - self.hud.table.y)
def relocate(self, x, y):
for i, w in self.m_windows.iteritems():
self.positions[i] = (x + self.rel_positions[i][0], y + self.rel_positions[i][1])
print "x, y =", x, y
print "rel_pos =", self.rel_positions
w.move(self.positions[i][0], self.positions[i][0])
def expose_all(self):
for (i, cards) in self.hud.cards.iteritems():
self.m_windows[i].show()