Kill aux windows when killing the HUD.

This commit is contained in:
Ray 2009-01-26 14:31:08 -05:00
parent b6ee768f2c
commit 37a643f054
2 changed files with 8 additions and 0 deletions

View File

@ -167,6 +167,11 @@ class Hud:
return # no killing self twice.
for k in self.stat_windows:
self.stat_windows[k].window.destroy()
# also kill any aux windows
for m in self.aux_windows:
m.destroy()
self.aux_windows.remove(m)
self.deleted = True
self.main_window.disconnect(self.main_window.destroyhandler) # so we don't potentially infiniteloop in here, right
self.main_window.destroy()

View File

@ -50,6 +50,9 @@ class Aux_Window:
def update_gui(self):
pass
def destroy(self):
self.container.destroy()
class Stud_mucked(Aux_Window):
def __init__(self, container, hud, config, params):