summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-02-14 17:07:04 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-02-14 17:07:04 (GMT)
commited24cd2cf7450bc587c13bdca1bd0bee2c677ab0 (patch)
tree5e18a252476f89ee91b4f1ee80730f7f46ebf32f /Mac/Lib
parent3ff82a3a4c4e73aca8254228c751d66a530ba362 (diff)
downloadcpython-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.py8
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