mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
*** empty log message ***
This commit is contained in:
parent
f497841656
commit
98a46bed4d
@ -5,8 +5,6 @@ from MessengerGlobal import *
|
||||
from TaskManagerGlobal import *
|
||||
from EventManagerGlobal import *
|
||||
from AudioManagerGlobal import *
|
||||
# This should be on a dconfig variable
|
||||
from TkGlobal import *
|
||||
import Task
|
||||
import EventManager
|
||||
|
||||
@ -16,6 +14,14 @@ class ShowBase:
|
||||
|
||||
def __init__(self):
|
||||
|
||||
# Get the dconfig object
|
||||
self.config = getConfigShowbase()
|
||||
|
||||
# Store dconfig variables
|
||||
self.wantTk = self.config.GetBool('want-tk', 0)
|
||||
self.wantSound = self.config.GetBool('want-sound', 1)
|
||||
self.wantMusic = self.config.GetBool('want-music', 1)
|
||||
|
||||
import Loader
|
||||
|
||||
self.initialState = NodeAttributes()
|
||||
@ -56,17 +62,14 @@ class ShowBase:
|
||||
|
||||
self.audioMgr = audioMgr
|
||||
|
||||
self.wantTk = 1
|
||||
self.createRootPanel()
|
||||
|
||||
self.restart()
|
||||
|
||||
self.wantSound = 1
|
||||
|
||||
self.wantMusic = 1
|
||||
|
||||
def createRootPanel(self):
|
||||
if self.wantTk:
|
||||
from TkGlobal import *
|
||||
self.tkroot = Pmw.initialise()
|
||||
else:
|
||||
self.tkroot = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user