diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-06-06 12:55:40 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-06-06 12:55:40 (GMT) |
commit | ae8a68f40cd56aa952520260970ebd5b9d3fb95c (patch) | |
tree | e1d470857f4a2fb83fe4fae48509f0babb93852c /Mac/Lib/test/tdlg.py | |
parent | c7cfb9555974e2e3789a629f1b7509eaa73ee2c6 (diff) | |
download | cpython-ae8a68f40cd56aa952520260970ebd5b9d3fb95c.zip cpython-ae8a68f40cd56aa952520260970ebd5b9d3fb95c.tar.gz cpython-ae8a68f40cd56aa952520260970ebd5b9d3fb95c.tar.bz2 |
Trying again to check it in. Changes to:
- Use Universal Headers as input
- Change addpack calls to not depend on Guido's disklayout
- Checkge testprograms to use new names for some functions
Diffstat (limited to 'Mac/Lib/test/tdlg.py')
-rw-r--r-- | Mac/Lib/test/tdlg.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mac/Lib/test/tdlg.py b/Mac/Lib/test/tdlg.py index d6fdd97..654a9a5 100644 --- a/Mac/Lib/test/tdlg.py +++ b/Mac/Lib/test/tdlg.py @@ -3,6 +3,9 @@ # Python library. # The ID can be overridden by passing a second parameter. +import addpack +addpack.addpack(':Tools:bgen:evt') + from Dlg import * from Events import * import string @@ -17,8 +20,8 @@ def f(d, event): def message(str = "Hello, world!", id = ID): d = GetNewDialog(id, -1) - tp, h, rect = d.GetDItem(2) - SetIText(h, str) + tp, h, rect = d.GetDialogItem(2) + SetDialogItemText(h, str) while 1: n = ModalDialog(f) if n == 1: break |