|
|
@@ -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()
|