Browse Source

Some fixes (but still doesn't run due to missing Lerp class)

rdb 12 years ago
parent
commit
1354fbf5cd

+ 2 - 2
contrib/src/sceneeditor/SideWindow.py

@@ -4,9 +4,9 @@
 #################################################################
 from direct.tkwidgets.AppShell import AppShell
 from direct.tkwidgets.VectorWidgets import ColorEntry
-from direct.showbase.TkGlobal import spawnTkLoop, Toplevel
+from direct.showbase.TkGlobal import spawnTkLoop
 import seSceneGraphExplorer
-from Tkinter import Frame, IntVar, Checkbutton
+from Tkinter import Frame, IntVar, Checkbutton, Toplevel
 import Pmw, Tkinter
 
 class sideWindow(AppShell):

+ 3 - 4
contrib/src/sceneeditor/sceneEditor.py

@@ -5,8 +5,8 @@ except: sys.exit("Please install python module 'Tkinter'")
 
 import direct
 from direct.directbase.DirectStart import*
-from direct.showbase.TkGlobal import *
-from direct.showbase.TkGlobal import spawnTkLoop, Toplevel
+from direct.showbase.TkGlobal import spawnTkLoop
+from Tkinter import *
 from tkFileDialog import *
 from direct.directtools.DirectGlobals import *
 from direct.tkwidgets.AppShell import*
@@ -40,7 +40,6 @@ import seAnimPanel
 from direct.task import Task
 import math
 
-
 #################################################################
 # All scene and windows object will be stored in here.
 # So, any event which will or need to change contents
@@ -1704,6 +1703,6 @@ class myLevelEditor(AppShell):
 
     
 
-editor = myLevelEditor(parent = tkroot)
+editor = myLevelEditor(parent = base.tkRoot)
 
 run()

+ 1 - 1
contrib/src/sceneeditor/seParticles.py

@@ -28,7 +28,7 @@ import os
 from direct.directnotify import DirectNotifyGlobal
 import sys
 
-class Particles(ParticleSystem.ParticleSystem):
+class Particles(ParticleSystem):
 
     notify = DirectNotifyGlobal.directNotify.newCategory('Particles')
     id = 1