From 5a13e96b3bababe0dd17332917d0d1461b849c8c Mon Sep 17 00:00:00 2001 From: Gerko de Roo Date: Wed, 17 Mar 2010 22:38:40 +0100 Subject: [PATCH] Auto close HUD support for closing tourney windows added. Not neat but functional. --- pyfpdb/Hud.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index dcad0865..5dcccf3c 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -448,6 +448,8 @@ class Hud: if os.name == 'nt': if not win32gui.IsWindow(self.table.number): self.parent.kill_hud(self, self.table.name) + self.parent.kill_hud(self, self.table.name.split(" ")[0]) + #table.name is only a valid handle for ring games ! we are not killing tourney tables here. return False # anyone know how to do this in unix, or better yet, trap the X11 error that is triggered when executing the get_origin() for a closed window? if self.table.gdkhandle is not None: