From 4d0968630970c6e5d45b4803c47f58907fb39b75 Mon Sep 17 00:00:00 2001 From: eblade Date: Wed, 4 Mar 2009 08:17:23 -0500 Subject: [PATCH] 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)