mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
*** empty log message ***
This commit is contained in:
parent
d98d9cc244
commit
a9873709f8
@ -1,5 +1,5 @@
|
|||||||
from PandaObject import *
|
from PandaObject import *
|
||||||
from DirectUtil import *
|
from DirectUtil import*
|
||||||
from DirectCameraControl import *
|
from DirectCameraControl import *
|
||||||
from DirectManipulation import *
|
from DirectManipulation import *
|
||||||
from DirectSelection import *
|
from DirectSelection import *
|
||||||
@ -165,7 +165,7 @@ class DirectSession(PandaObject):
|
|||||||
'mouse3', 'mouse3-up']
|
'mouse3', 'mouse3-up']
|
||||||
|
|
||||||
if base.wantTk:
|
if base.wantTk:
|
||||||
from TkGlobal import *
|
from TkGlobal import tkroot
|
||||||
self.panel = DirectSessionPanel(parent = tkroot)
|
self.panel = DirectSessionPanel(parent = tkroot)
|
||||||
|
|
||||||
if self.iAmAServer:
|
if self.iAmAServer:
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from AppShell import *
|
from AppShell import *
|
||||||
|
|
||||||
|
|
||||||
class TaskManagerPanel(AppShell):
|
class TaskManagerPanel(AppShell):
|
||||||
# Override class variables here
|
# Override class variables here
|
||||||
appname = 'TaskManager Panel'
|
appname = 'TaskManager Panel'
|
||||||
@ -13,10 +12,11 @@ class TaskManagerPanel(AppShell):
|
|||||||
INITOPT = Pmw.INITOPT
|
INITOPT = Pmw.INITOPT
|
||||||
optiondefs = (
|
optiondefs = (
|
||||||
('title', self.appname, None),
|
('title', self.appname, None),
|
||||||
('taskMgr', None, None)
|
|
||||||
)
|
)
|
||||||
self.defineoptions(kw, optiondefs)
|
self.defineoptions(kw, optiondefs)
|
||||||
|
|
||||||
|
self.taskMgr = taskMgr
|
||||||
|
|
||||||
# Call superclass initialization function
|
# Call superclass initialization function
|
||||||
AppShell.__init__(self, parent = parent)
|
AppShell.__init__(self, parent = parent)
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ class TaskManagerPanel(AppShell):
|
|||||||
# Get a handle on the file menu so commands can be inserted
|
# Get a handle on the file menu so commands can be inserted
|
||||||
# before quit item
|
# before quit item
|
||||||
self.taskMgrWidget = TaskManagerWidget(
|
self.taskMgrWidget = TaskManagerWidget(
|
||||||
self.interior(), self['taskMgr'])
|
self.interior(), self.taskMgr)
|
||||||
|
|
||||||
|
|
||||||
def onDestroy(self, event):
|
def onDestroy(self, event):
|
||||||
@ -46,7 +46,7 @@ class TaskManagerWidget(PandaObject):
|
|||||||
tasks managed by the taskManager.
|
tasks managed by the taskManager.
|
||||||
"""
|
"""
|
||||||
# Make sure TK mainloop is running
|
# Make sure TK mainloop is running
|
||||||
from TkGlobal import *
|
import TkGlobal
|
||||||
# Record parent (used by ok cancel dialog boxes)
|
# Record parent (used by ok cancel dialog boxes)
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
# Record taskManager
|
# Record taskManager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user