1 # Dialog.py -- Tkinter interface to the tk_dialog script.
5 def __init__(self
, master
=None, cnf
={}):
6 Widget
._setup
(self
, master
, cnf
)
7 self
.num
= self
.tk
.getint(
10 cnf
['title'], cnf
['text'],
11 cnf
['bitmap'], cnf
['default'])
13 try: Widget
.destroy(self
)
15 def destroy(self
): pass
18 d
= Dialog(None, {'title': 'File Modified',
20 'File "Python.h" has been modified'
21 ' since the last time it was saved.'
22 ' Do you want to save it before'
23 ' exiting the application.',
26 'strings': ('Save File',
32 if __name__
== '__main__':
33 t
= Button(None, {'text': 'Test',
36 q
= Button(None, {'text': 'Quit',