mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
fix Tk crash on OSX
This commit is contained in:
parent
626294831d
commit
9dcc7a5e35
@ -2802,8 +2802,10 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
fWantTk = bool(fWantTk)
|
fWantTk = bool(fWantTk)
|
||||||
if self.wantTk != fWantTk:
|
if self.wantTk != fWantTk:
|
||||||
self.wantTk = fWantTk
|
self.wantTk = fWantTk
|
||||||
initAppForGui()
|
# We need to import this before initAppForGui,
|
||||||
|
# in order to prevent a low-level crash on OSX
|
||||||
from direct.showbase import TkGlobal
|
from direct.showbase import TkGlobal
|
||||||
|
initAppForGui()
|
||||||
TkGlobal.spawnTkLoop()
|
TkGlobal.spawnTkLoop()
|
||||||
|
|
||||||
def startDirect(self, fWantDirect = 1, fWantTk = 1, fWantWx = 0):
|
def startDirect(self, fWantDirect = 1, fWantTk = 1, fWantWx = 0):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user