From e50fbf4f21336cf37435d752d264558e4cb880a7 Mon Sep 17 00:00:00 2001 From: eblade Date: Mon, 15 Dec 2008 22:38:04 -0500 Subject: [PATCH] timer runs only under windows, not only under unix, oops --- pyfpdb/Hud.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index 1de69413..3bcb3bf1 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -129,8 +129,6 @@ class Hud: if not win32gui.IsWindow(self.table.number): self.kill_hud() return False - else: - return False # kill the timer under Unix, and ignore it until we have a way to check the validity of the window. (x, y) = self.main_window.parentgdkhandle.get_origin() if self.table.x != x or self.table.y != y: @@ -238,7 +236,8 @@ class Hud: aux_params = config.get_aux_parameters(game_params['aux']) self.aux_windows.append(eval("%s.%s(gtk.Window(), self, config, 'fpdb')" % (aux_params['module'], aux_params['class']))) - gobject.timeout_add(500, self.update_table_position) + if os.name == "nt": + gobject.timeout_add(500, self.update_table_position) def update(self, hand, config, stat_dict): self.hand = hand # this is the last hand, so it is available later