From e30989a8528239c00e1aecd427d7c02305e11343 Mon Sep 17 00:00:00 2001 From: Eratosthenes Date: Fri, 26 Nov 2010 22:10:51 -0500 Subject: [PATCH] Fix odd intermittent problem with HUD not opening. --- pyfpdb/HUD_main.pyw | 3 ++- pyfpdb/TableWindow.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100755 => 100644 pyfpdb/HUD_main.pyw diff --git a/pyfpdb/HUD_main.pyw b/pyfpdb/HUD_main.pyw old mode 100755 new mode 100644 index 145e9048..cd46f596 --- a/pyfpdb/HUD_main.pyw +++ b/pyfpdb/HUD_main.pyw @@ -184,7 +184,8 @@ class HUD_main(object): self.vb.add(newlabel) newlabel.show() self.main_window.resize_children() - + table.gdkhandle = gtk.gdk.window_foreign_new(table.number) + self.hud_dict[table.key].tablehudlabel = newlabel self.hud_dict[table.key].create(new_hand_id, self.config, stat_dict, cards) for m in self.hud_dict[table.key].aux_windows: diff --git a/pyfpdb/TableWindow.py b/pyfpdb/TableWindow.py index bf4ea854..43910317 100644 --- a/pyfpdb/TableWindow.py +++ b/pyfpdb/TableWindow.py @@ -138,7 +138,7 @@ class Table_Window(object): self.search_string = getTableTitleRe(self.config, self.site, self.type, **table_kwargs) self.find_table_parameters() - self.gdkhandle = gtk.gdk.window_foreign_new(self.number) +# self.gdkhandle = gtk.gdk.window_foreign_new(self.number) geo = self.get_geometry() if geo is None: return None self.width = geo['width']