Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
9b5ca04b9e
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      direct/src/showbase/TkGlobal.py

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

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