error in HUD_main threads

This commit is contained in:
Ray 2008-10-18 12:00:29 -04:00
parent 93a167b64d
commit 3c4d05148b

View File

@ -76,7 +76,7 @@ def create_HUD(new_hand_id, table, db_name, table_name, max, poker_game, db_conn
gtk.gdk.threads_leave
gobject.idle_add(idle_func)
def update_HUD(new_hand_id, config, stat_dict):
def update_HUD(new_hand_id, table_name, config, stat_dict):
global hud_dict
def idle_func():
gtk.threads_enter()
@ -109,7 +109,7 @@ def read_stdin(): # This is the thread function
# if a hud for this table exists, just update it
if hud_dict.has_key(table_name):
update_HUD(new_hand_id, config, stat_dict)
update_HUD(new_hand_id, table_name, config, stat_dict)
# otherwise create a new hud
else:
table_windows = Tables.discover(config)