From 9ebabc79dd96772e3e243dbc5bb25e7a1dee9deb Mon Sep 17 00:00:00 2001 From: eblade Date: Mon, 2 Mar 2009 19:51:18 -0500 Subject: [PATCH 1/2] fix my misspelling of the maxseats var --- pyfpdb/EverleafToFpdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index 1f8ecbeb..407772ed 100755 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -107,7 +107,7 @@ class Everleaf(HandHistoryConverter): print "DEBUG: re_HandInfo.search failed: '%s'" %(hand.string) hand.handid = m.group('HID') hand.tablename = m.group('TABLE') - hand.max_seats = 6 # assume 6-max unless we have proof it's a larger/smaller game, since everleaf doesn't give seat max info + hand.maxseats = 6 # assume 6-max unless we have proof it's a larger/smaller game, since everleaf doesn't give seat max info # These work, but the info is already in the Hand class - should be used for tourneys though. # m.group('SB') # m.group('BB') @@ -128,7 +128,7 @@ class Everleaf(HandHistoryConverter): seatnum = int(a.group('SEAT')) hand.addPlayer(seatnum, a.group('PNAME'), a.group('CASH')) if seatnum > 6: - hand.max_seats = 10 # everleaf currently does 2/6/10 games, so if seats > 6 are in use, it must be 10-max. + hand.maxseats = 10 # everleaf currently does 2/6/10 games, so if seats > 6 are in use, it must be 10-max. # TODO: implement lookup list by table-name to determine maxes, then fall back to 6 default/10 here, if there's no entry in the list? From 4d0968630970c6e5d45b4803c47f58907fb39b75 Mon Sep 17 00:00:00 2001 From: eblade Date: Wed, 4 Mar 2009 08:17:23 -0500 Subject: [PATCH 2/2] hud_main window resizes to smallest possible size whenever a hud is removed from the list (pls test in nix guys tnx) --- pyfpdb/HUD_main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index 7418cfc8..29368c10 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -83,6 +83,7 @@ class HUD_main(object): self.hud_dict[table].main_window.destroy() self.vb.remove(self.hud_dict[table].tablehudlabel) del(self.hud_dict[table]) + self.main_window.resize(1,1) def create_HUD(self, new_hand_id, table, table_name, max, poker_game, is_tournament, stat_dict, cards): @@ -93,6 +94,7 @@ class HUD_main(object): newlabel = gtk.Label(table.site + " - " + table_name) self.vb.add(newlabel) newlabel.show() + self.main_window.resize_children() self.hud_dict[table_name].tablehudlabel = newlabel self.hud_dict[table_name].create(new_hand_id, self.config, stat_dict, cards)