summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/test/tdlg.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Lib/test/tdlg.py')
-rw-r--r--Mac/Lib/test/tdlg.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Mac/Lib/test/tdlg.py b/Mac/Lib/test/tdlg.py
new file mode 100644
index 0000000..f234a70
--- /dev/null
+++ b/Mac/Lib/test/tdlg.py
@@ -0,0 +1,15 @@
+# This program requires that a DLOG resource with ID=128 exists.
+# You can make one with ResEdit if necessary.
+
+from Res import *
+from Dlg import *
+
+ires = 128
+
+def filter(*args): print 'filter:', args
+
+d = GetNewDialog(ires, -1)
+while 1:
+ n = ModalDialog(filter)
+ print 'item:', n
+ if n == 1: break