summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index ae6cfb5..5c28084 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -61,6 +61,8 @@ _default_root = None
def NoDefaultRoot():
global _support_default_root
_support_default_root = 0
+ global _default_root
+ _default_root = None
del _default_root
def _tkerror(err):
@@ -931,8 +933,8 @@ class Tk(Misc, Wm):
print 'execfile', `base_py`
execfile(base_py, dir)
def report_callback_exception(self, exc, val, tb):
- import traceback
- print "Exception in Tkinter callback"
+ import traceback, sys
+ sys.stderr.write("Exception in Tkinter callback\n")
traceback.print_exception(exc, val, tb)
# Ideally, the classes Pack, Place and Grid disappear, the
@@ -1042,8 +1044,6 @@ class BaseWidget(Misc):
if not _default_root:
_default_root = Tk()
master = _default_root
- if not _default_root:
- _default_root = master
self.master = master
self.tk = master.tk
name = None