summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/Dialog.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-30 12:13:44 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-30 12:13:44 (GMT)
commitf023ab0471c5b8dc9f421890481f94451b00e545 (patch)
treee8c362085c11d79f3af2f3c82c1a833a8c1594da /Lib/lib-tk/Dialog.py
parentc1be9d59e4b25a7185dc976b695532a397e838b0 (diff)
downloadcpython-f023ab0471c5b8dc9f421890481f94451b00e545.zip
cpython-f023ab0471c5b8dc9f421890481f94451b00e545.tar.gz
cpython-f023ab0471c5b8dc9f421890481f94451b00e545.tar.bz2
Dialog.py: d.num should be numeric, not string
Tkinter.py: on destroy(), remove self from master's dict of children
Diffstat (limited to 'Lib/lib-tk/Dialog.py')
-rw-r--r--Lib/lib-tk/Dialog.py11
1 files changed, 6 insertions, 5 deletions
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 @@ 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