From: Jack Jansen Date: Thu, 2 Aug 2001 22:25:31 +0000 (+0000) Subject: When closing a DialogWindow also clear out self.dlg. X-Git-Tag: v2.1.2c1~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a31238d0063018fa360eea38762d0cee4420df3;p=thirdparty%2FPython%2Fcpython.git When closing a DialogWindow also clear out self.dlg. --- diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index 4735fc42e6cb..3ee118da2e06 100644 --- a/Mac/Lib/FrameWork.py +++ b/Mac/Lib/FrameWork.py @@ -1010,6 +1010,10 @@ class DialogWindow(Window): def close(self): self.do_postclose() + def do_postclose(self): + self.dlg = None + Window.do_postclose(self) + def do_itemhit(self, item, event): print 'Dialog %s, item %d hit'%(self.dlg, item)