diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-02-14 17:07:04 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-02-14 17:07:04 (GMT) |
commit | ed24cd2cf7450bc587c13bdca1bd0bee2c677ab0 (patch) | |
tree | 5e18a252476f89ee91b4f1ee80730f7f46ebf32f /Mac/Lib | |
parent | 3ff82a3a4c4e73aca8254228c751d66a530ba362 (diff) | |
download | cpython-ed24cd2cf7450bc587c13bdca1bd0bee2c677ab0.zip cpython-ed24cd2cf7450bc587c13bdca1bd0bee2c677ab0.tar.gz cpython-ed24cd2cf7450bc587c13bdca1bd0bee2c677ab0.tar.bz2 |
DialogWindows now have a self.dlg in addition to self.wid.
Diffstat (limited to 'Mac/Lib')
-rw-r--r-- | Mac/Lib/FrameWork.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index dc762cf..4454c67 100644 --- a/Mac/Lib/FrameWork.py +++ b/Mac/Lib/FrameWork.py @@ -222,8 +222,9 @@ class Application: return old def do_dialogevent(self, event): - gotone, window, item = DialogSelect(event) + gotone, dlg, item = DialogSelect(event) if gotone: + window = dlg.GetDialogWindow() if self._windows.has_key(window): self._windows[window].do_itemhit(item, event) else: @@ -995,14 +996,15 @@ class DialogWindow(Window): """A modeless dialog window""" def open(self, resid): - self.wid = GetNewDialog(resid, -1) + self.dlg = GetNewDialog(resid, -1) + self.wid = self.dlg.GetDialogWindow() self.do_postopen() def close(self): self.do_postclose() def do_itemhit(self, item, event): - print 'Dialog %s, item %d hit'%(self.wid, item) + print 'Dialog %s, item %d hit'%(self.dlg, item) def do_rawupdate(self, window, event): pass |