|
@@ -7,10 +7,8 @@ from DirectSelection import *
|
|
|
from DirectGrid import *
|
|
from DirectGrid import *
|
|
|
from DirectGeometry import *
|
|
from DirectGeometry import *
|
|
|
from DirectLights import *
|
|
from DirectLights import *
|
|
|
-from DirectSessionPanel import *
|
|
|
|
|
from ClusterClient import *
|
|
from ClusterClient import *
|
|
|
from ClusterServer import *
|
|
from ClusterServer import *
|
|
|
-from tkSimpleDialog import askstring
|
|
|
|
|
import Placer
|
|
import Placer
|
|
|
import Slider
|
|
import Slider
|
|
|
import SceneGraphExplorer
|
|
import SceneGraphExplorer
|
|
@@ -169,8 +167,8 @@ class DirectSession(PandaObject):
|
|
|
|
|
|
|
|
if base.wantTk:
|
|
if base.wantTk:
|
|
|
import TkGlobal
|
|
import TkGlobal
|
|
|
- self.panel = DirectSessionPanel(parent = tkroot)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ import DirectSessionPanel
|
|
|
|
|
+ self.panel = DirectSessionPanel.DirectSessionPanel(parent = tkroot)
|
|
|
try:
|
|
try:
|
|
|
# Has the clusterMode been set externally (i.e. via the
|
|
# Has the clusterMode been set externally (i.e. via the
|
|
|
# bootstrap application?
|
|
# bootstrap application?
|
|
@@ -646,6 +644,7 @@ class DirectSession(PandaObject):
|
|
|
|
|
|
|
|
def getAndSetName(self, nodePath):
|
|
def getAndSetName(self, nodePath):
|
|
|
""" Prompt user for new node path name """
|
|
""" Prompt user for new node path name """
|
|
|
|
|
+ from tkSimpleDialog import askstring
|
|
|
newName = askstring('Node Path: ' + nodePath.getName(),
|
|
newName = askstring('Node Path: ' + nodePath.getName(),
|
|
|
'Enter new name:')
|
|
'Enter new name:')
|
|
|
if newName:
|
|
if newName:
|