Back out mucked window dragging changes.
This commit is contained in:
parent
01bc1cebf1
commit
29bd0c2a7a
|
@ -178,7 +178,6 @@ class Hud:
|
||||||
if not type(w) == int: # how do we get pure ints in this list??
|
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)
|
||||||
[aw.relocate(self.table.x, self.table.y) for aw in self.aux_windows]
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
@ -442,13 +442,6 @@ class Flop_Mucked(Aux_Window):
|
||||||
self.positions[i] = widget.get_position()
|
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)
|
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):
|
def expose_all(self):
|
||||||
for (i, cards) in self.hud.cards.iteritems():
|
for (i, cards) in self.hud.cards.iteritems():
|
||||||
self.m_windows[i].show()
|
self.m_windows[i].show()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user