*** empty log message ***

This commit is contained in:
Joe Shochet 2000-10-13 19:16:21 +00:00
parent f497841656
commit 98a46bed4d

View File

@ -5,8 +5,6 @@ from MessengerGlobal import *
from TaskManagerGlobal import * from TaskManagerGlobal import *
from EventManagerGlobal import * from EventManagerGlobal import *
from AudioManagerGlobal import * from AudioManagerGlobal import *
# This should be on a dconfig variable
from TkGlobal import *
import Task import Task
import EventManager import EventManager
@ -16,6 +14,14 @@ class ShowBase:
def __init__(self): 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 import Loader
self.initialState = NodeAttributes() self.initialState = NodeAttributes()
@ -56,17 +62,14 @@ class ShowBase:
self.audioMgr = audioMgr self.audioMgr = audioMgr
self.wantTk = 1
self.createRootPanel() self.createRootPanel()
self.restart() self.restart()
self.wantSound = 1
self.wantMusic = 1
def createRootPanel(self): def createRootPanel(self):
if self.wantTk: if self.wantTk:
from TkGlobal import *
self.tkroot = Pmw.initialise() self.tkroot = Pmw.initialise()
else: else:
self.tkroot = None self.tkroot = None