Mercurial > cpython-lru_cache-weakref
diff Lib/tkinter/Dialog.py @ 1853:9d4add42ee22 legacy-trunk
Dialog.py: d.num should be numeric, not string
Tkinter.py: on destroy(), remove self from master's dict of children
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 30 Aug 1994 12:13:44 +0000 |
| parents | d88af58e95cd |
| children | bd79cd768ff8 |
line wrap: on
line diff
--- a/Lib/tkinter/Dialog.py Tue Aug 30 12:08:58 1994 +0000 +++ b/Lib/tkinter/Dialog.py Tue Aug 30 12:13:44 1994 +0000 @@ -4,11 +4,12 @@ class Dialog(Widget): def __init__(self, master=None, cnf={}): Widget._setup(self, master, cnf) - self.num = apply(self.tk.call, - ('tk_dialog', self._w, - cnf['title'], cnf['text'], - cnf['bitmap'], cnf['default']) - + cnf['strings']) + self.num = self.tk.getint( + apply(self.tk.call, + ('tk_dialog', self._w, + cnf['title'], cnf['text'], + cnf['bitmap'], cnf['default']) + + cnf['strings'])) try: Widget.destroy(self) except TclError: pass def destroy(self): pass
