Dialog.py: d.num should be numeric, not string
Tkinter.py: on destroy(), remove self from master's dict of children
diff --git a/Lib/lib-tk/Dialog.py b/Lib/lib-tk/Dialog.py
index 28222ec..022bd96 100644
--- a/Lib/lib-tk/Dialog.py
+++ b/Lib/lib-tk/Dialog.py
@@ -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