summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/example2
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/Demo/example2
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/Demo/example2')
-rw-r--r--Mac/Demo/example2/dnslookup-2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Demo/example2/dnslookup-2.py b/Mac/Demo/example2/dnslookup-2.py
index 82568d0..e595b8e 100644
--- a/Mac/Demo/example2/dnslookup-2.py
+++ b/Mac/Demo/example2/dnslookup-2.py
@@ -65,10 +65,10 @@ class MyDialog(FrameWork.DialogWindow):
def dolookup(self):
"""Get text entered in the lookup entry area. Place result of the
call to dnslookup in the result entry area."""
- tp, h, rect = self.wid.GetDialogItem(ITEM_LOOKUP_ENTRY)
+ tp, h, rect = self.dlg.GetDialogItem(ITEM_LOOKUP_ENTRY)
txt = Dlg.GetDialogItemText(h)
- tp, h, rect = self.wid.GetDialogItem(ITEM_RESULT)
+ tp, h, rect = self.dlg.GetDialogItem(ITEM_RESULT)
Dlg.SetDialogItemText(h, self.dnslookup(txt))
def dnslookup(self, str):