Auto close HUD support for closing tourney windows added.

Not neat but functional.
This commit is contained in:
Gerko de Roo 2010-03-17 22:38:40 +01:00 committed by Worros
parent f6fbf08250
commit 5a13e96b3b

View File

@ -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: