From 5c8cf5760dceaa6f8b52401b3cb55ba4e2a4c328 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 18 Oct 2008 14:05:38 -0400 Subject: [PATCH] minor cleanups to HUD_main.py thread stuff --- pyfpdb/HUD_main.py | 4 ++-- pyfpdb/Hud.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index ed474f8c..e369e7f3 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -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 diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index ddbffed4..3abca197 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -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 = {}