소스 검색

*** empty log message ***

Joe Shochet 25 년 전
부모
커밋
7e56e81e04
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      direct/src/interval/Interval.py

+ 4 - 4
direct/src/interval/Interval.py

@@ -1,10 +1,6 @@
 """Interval module: contains the Interval class"""
 """Interval module: contains the Interval class"""
 
 
 from DirectObject import *
 from DirectObject import *
-from Tkinter import *
-import Pmw
-import EntryScale
-
 import ClockObject
 import ClockObject
 import Task
 import Task
 
 
@@ -93,6 +89,10 @@ class Interval(DirectObject):
 	print (space + self.name + ' dur: %.2f' % self.duration)
 	print (space + self.name + ' dur: %.2f' % self.duration)
 
 
     def popupControls(self):
     def popupControls(self):
+        # I moved this here because Toontown does not ship Tk
+        from Tkinter import *
+        import Pmw
+        import EntryScale
         tl = Toplevel()
         tl = Toplevel()
         es = EntryScale.EntryScale(
         es = EntryScale.EntryScale(
             tl, min = 0, max = self.duration,
             tl, min = 0, max = self.duration,