From f023ab0471c5b8dc9f421890481f94451b00e545 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 30 Aug 1994 12:13:44 +0000 Subject: Dialog.py: d.num should be numeric, not string Tkinter.py: on destroy(), remove self from master's dict of children --- Lib/tkinter/Dialog.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Lib/tkinter/Dialog.py') diff --git a/Lib/tkinter/Dialog.py b/Lib/tkinter/Dialog.py index 28222ecb07..022bd96a76 100755 --- a/Lib/tkinter/Dialog.py +++ b/Lib/tkinter/Dialog.py @@ -4,11 +4,12 @@ from Tkinter import * 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 -- cgit v1.2.1