move move() under the line where position to move to is stored, instead of calculating position twice in two lines

This commit is contained in:
eblade 2009-03-23 19:22:04 -04:00
parent 2f4783b50b
commit a863743974

View File

@ -349,8 +349,8 @@ class Flop_Mucked(Aux_Window):
self.m_windows[i].add(self.eb[i])
self.seen_cards[i] = gtk.image_new_from_pixbuf(self.card_images[('B', 'H')])
self.eb[i].add(self.seen_cards[i])
self.m_windows[i].move(int(x) + self.hud.table.x, int(y) + self.hud.table.y)
self.positions[i] = (int(x) + self.hud.table.x, int(y) + self.hud.table.y)
self.m_windows[i].move(self.positions[i][0], self.positions[i][1])
self.m_windows[i].set_opacity(float(self.params['opacity']))
self.m_windows[i].show_all()
self.m_windows[i].hide()