mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
added global function 'giveNotify(cls)'
This commit is contained in:
parent
763808f8e4
commit
79d14e2fc8
@ -120,3 +120,6 @@ class DirectNotify:
|
||||
def popupControls(self, tl = None):
|
||||
from direct.tkpanels import NotifyPanel
|
||||
NotifyPanel.NotifyPanel(self, tl)
|
||||
|
||||
def giveNotify(self,cls):
|
||||
cls.notify = self.newCategory(cls.__name__)
|
||||
|
@ -3,4 +3,4 @@
|
||||
import DirectNotify
|
||||
|
||||
directNotify = DirectNotify.DirectNotify()
|
||||
|
||||
giveNotify = directNotify.giveNotify
|
||||
|
@ -249,6 +249,7 @@ class ShowBase(DirectObject.DirectObject):
|
||||
__builtins__["run"] = self.run
|
||||
__builtins__["ostream"] = Notify.out()
|
||||
__builtins__["directNotify"] = directNotify
|
||||
__builtins__["giveNotify"] = giveNotify
|
||||
__builtins__["globalClock"] = globalClock
|
||||
__builtins__["vfs"] = vfs
|
||||
__builtins__["cpMgr"] = ConfigPageManager.getGlobalPtr()
|
||||
|
Loading…
x
Reference in New Issue
Block a user