summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/test/tdlg.py
blob: f234a701998e59dc80b0c6e5ee46520e18bc8eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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