From 29bd0c2a7ada4fe86d1e05d5e75efa1b01169e1a Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 25 Mar 2009 17:22:28 -0400 Subject: [PATCH] Back out mucked window dragging changes. --- pyfpdb/Hud.py | 1 - pyfpdb/Mucked.py | 7 ------- 2 files changed, 8 deletions(-) diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index caf4ebb2..732832a7 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -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 diff --git a/pyfpdb/Mucked.py b/pyfpdb/Mucked.py index 434ef63b..8f7aa29b 100755 --- a/pyfpdb/Mucked.py +++ b/pyfpdb/Mucked.py @@ -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()