minor cleanups to HUD_main.py thread stuff

This commit is contained in:
Ray 2008-10-18 14:05:38 -04:00
parent 3c4d05148b
commit 5c8cf5760d
2 changed files with 3 additions and 3 deletions

View File

@ -79,12 +79,12 @@ def create_HUD(new_hand_id, table, db_name, table_name, max, poker_game, db_conn
def update_HUD(new_hand_id, table_name, config, stat_dict):
global hud_dict
def idle_func():
gtk.threads_enter()
gtk.gdk.threads_enter()
try:
hud_dict[table_name].update(new_hand_id, config, stat_dict)
return False
finally:
gtk.threads_leave
gtk.gkd.threads_leave
gobject.idle_add(idle_func)
def read_stdin(): # This is the thread function

View File

@ -52,7 +52,7 @@ class Hud:
self.max = max
self.db_name = db_name
self.deleted = False
self.stacked = True
self.stacked = False
self.stat_windows = {}
self.popup_windows = {}