blob: f234a701998e59dc80b0c6e5ee46520e18bc8eb7 [file] [log] [blame]
Guido van Rossum17448e21995-01-30 11:53:55 +00001# This program requires that a DLOG resource with ID=128 exists.
2# You can make one with ResEdit if necessary.
3
4from Res import *
5from Dlg import *
6
7ires = 128
8
9def filter(*args): print 'filter:', args
10
11d = GetNewDialog(ires, -1)
12while 1:
13 n = ModalDialog(filter)
14 print 'item:', n
15 if n == 1: break