Cleanup in HUD_main and HUD.py to simplify.

HUD_run_me no longer needed but not removed.
This commit is contained in:
Ray
2009-02-21 18:19:49 -05:00
parent 18140defd8
commit 2ebb026543
3 changed files with 126 additions and 120 deletions
+3 -2
View File
@@ -47,7 +47,8 @@ import HUD_main
class Hud:
def __init__(self, table, max, poker_game, config, db_connection):
def __init__(self, parent, table, max, poker_game, config, db_connection):
self.parent = parent
self.table = table
self.config = config
self.poker_game = poker_game
@@ -175,7 +176,7 @@ class Hud:
self.deleted = True
self.main_window.disconnect(self.main_window.destroyhandler) # so we don't potentially infiniteloop in here, right
self.main_window.destroy()
HUD_main.HUD_removed(self.table.name)
self.parent.HUD_removed(self.table.name)
def kill_hud_menu(self, *args):
self.main_window.destroy()