prevent error when trying to close HUD that has already gone
This commit is contained in:
parent
985d2c28d4
commit
d986966332
|
@ -81,10 +81,11 @@ class HUD_main(object):
|
||||||
|
|
||||||
def kill_hud(self, event, table):
|
def kill_hud(self, event, table):
|
||||||
# called by an event in the HUD, to kill this specific HUD
|
# called by an event in the HUD, to kill this specific HUD
|
||||||
self.hud_dict[table].kill()
|
if table in self.hud_dict:
|
||||||
self.hud_dict[table].main_window.destroy()
|
self.hud_dict[table].kill()
|
||||||
self.vb.remove(self.hud_dict[table].tablehudlabel)
|
self.hud_dict[table].main_window.destroy()
|
||||||
del(self.hud_dict[table])
|
self.vb.remove(self.hud_dict[table].tablehudlabel)
|
||||||
|
del(self.hud_dict[table])
|
||||||
self.main_window.resize(1,1)
|
self.main_window.resize(1,1)
|
||||||
|
|
||||||
def create_HUD(self, new_hand_id, table, table_name, max, poker_game, stat_dict, cards):
|
def create_HUD(self, new_hand_id, table, table_name, max, poker_game, stat_dict, cards):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user