error in HUD_main threads
This commit is contained in:
parent
93a167b64d
commit
3c4d05148b
|
@ -76,7 +76,7 @@ def create_HUD(new_hand_id, table, db_name, table_name, max, poker_game, db_conn
|
||||||
gtk.gdk.threads_leave
|
gtk.gdk.threads_leave
|
||||||
gobject.idle_add(idle_func)
|
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
|
global hud_dict
|
||||||
def idle_func():
|
def idle_func():
|
||||||
gtk.threads_enter()
|
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 a hud for this table exists, just update it
|
||||||
if hud_dict.has_key(table_name):
|
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
|
# otherwise create a new hud
|
||||||
else:
|
else:
|
||||||
table_windows = Tables.discover(config)
|
table_windows = Tables.discover(config)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user