From 9b5ca04b9ed442faf11702758a0f2d29051f99ec Mon Sep 17 00:00:00 2001 From: Philip Saltzman Date: Sun, 10 Apr 2005 23:41:25 +0000 Subject: [PATCH] Spawns TkLoop on import so people attempting to use TkPanels won't have them crash if they didn't specify want-tk #t --- direct/src/showbase/TkGlobal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct/src/showbase/TkGlobal.py b/direct/src/showbase/TkGlobal.py index 4f9d39c6b4..75d5820a51 100644 --- a/direct/src/showbase/TkGlobal.py +++ b/direct/src/showbase/TkGlobal.py @@ -24,4 +24,5 @@ def spawnTkLoop(): # Spawn this task taskMgr.add(tkLoop, "tkLoop") - +taskMgr.remove('tkLoop') +spawnTkLoop()