Fix odd intermittent problem with HUD not opening.

This commit is contained in:
Eratosthenes 2010-11-26 22:10:51 -05:00
parent a8f12db7f7
commit e30989a852
2 changed files with 3 additions and 2 deletions

1
pyfpdb/HUD_main.pyw Executable file → Normal file
View File

@ -184,6 +184,7 @@ 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)

View File

@ -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']