From 46f246e27dc89943bf4033e3fe58bed2f450c9c2 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 12 Mar 2009 17:51:29 -0400 Subject: [PATCH 1/2] Change a rogue xrange back to range. --- pyfpdb/Hud.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index 07396f61..54cc6b35 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -218,8 +218,9 @@ class Hud: self.config.save() def adj_seats(self, hand, config): - - adj = xrange(0, self.max + 1) # default seat adjustments = no adjustment + +# Need range here, not xrange -> need the actual list + adj = range(0, self.max + 1) # default seat adjustments = no adjustment # does the user have a fav_seat? try: sys.stderr.write("site = %s, max = %d, fav seat = %d\n" % (self.table.site, self.max, config.supported_sites[self.table.site].layout[self.max].fav_seat)) From f0413a66f55a88dab2045c83608d44081a669b57 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 12 Mar 2009 17:58:12 -0400 Subject: [PATCH 2/2] Fix moved method, but didn't change reference. --- pyfpdb/Mucked.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Mucked.py b/pyfpdb/Mucked.py index 06a216b3..90af4b8f 100755 --- a/pyfpdb/Mucked.py +++ b/pyfpdb/Mucked.py @@ -215,7 +215,7 @@ class Stud_cards: self.config = config # self.db_name = db_name - self.card_images = self.get_card_images() + self.card_images = self.parent.get_card_images() self.seen_cards = {} self.grid_contents = {} self.eb = {} @@ -280,7 +280,7 @@ class Stud_cards: (4, cards[8:10]), (5, cards[10:12]), (6, cards[12:14])): if not i[1] == "xx": self.seen_cards[(i[0], c - 1)]. \ - set_from_pixbuf(self.card_images[self.split_cards(i[1])]) + set_from_pixbuf(self.card_images[self.parent.split_cards(i[1])]) ## action in tool tips for 3rd street cards for c in (0, 1, 2): for r in range(0, self.rows):