[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-devel] main_menu bug
From: |
Kai Sterker |
Subject: |
Re: [Adonthell-devel] main_menu bug |
Date: |
Sun, 29 Sep 2002 16:35:45 +0200 |
On Sun, 29 Sep 2002 11:41:23 +0200 Alexandre Courbot wrote:
> But: make a print at the end of main_menu's
> constructor, and give it a destructor that simply prints something as
> well. What happen when you pop the menu up? The constructor's print is
> displayed, but when you leave it its destructor's one isn't. This is
> the only problem we have: main_menu instances are never deleted where
> they should be, that is at the end of the scope where they are created
> in control.py. Why that? I have no damn clue. I tried to del() it
> manually, without any result. I hope you are less clueless than me.
> But anyway, it's clear that nothing is to be changed in win_manager -
> we have a problem on the Python side instead.
That's what I also did, with the same results. But in the morning I woke
up with the solution in mind:
instead of 'del menu', I call 'win_container.__del__(menu)' and voila:
the menu will be completely deleted and the destructor prints its
message :).
I'll just make a few more tests to make sure it works in all cases, then
I'll commit.
Kai
- [Adonthell-devel] main_menu bug, Kai Sterker, 2002/09/28
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug,
Kai Sterker <=
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Kai Sterker, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Kai Sterker, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Alexandre Courbot, 2002/09/29
- Re: [Adonthell-devel] main_menu bug, Kai Sterker, 2002/09/29