Browse Source

Spawns TkLoop on import so people attempting to use TkPanels won't have them crash if they didn't specify want-tk #t

Philip Saltzman 20 years ago
parent
commit
9b5ca04b9e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/showbase/TkGlobal.py

+ 2 - 1
direct/src/showbase/TkGlobal.py

@@ -24,4 +24,5 @@ def spawnTkLoop():
     # Spawn this task
     # Spawn this task
     taskMgr.add(tkLoop, "tkLoop")
     taskMgr.add(tkLoop, "tkLoop")
 
 
-
+taskMgr.remove('tkLoop')
+spawnTkLoop()