Răsfoiți Sursa

*** empty log message ***

Joe Shochet 24 ani în urmă
părinte
comite
f58343b852
2 a modificat fișierele cu 9 adăugiri și 6 ștergeri
  1. 4 1
      direct/src/gui/DirectGuiBase.py
  2. 5 5
      direct/src/gui/DirectGuiGlobals.py

+ 4 - 1
direct/src/gui/DirectGuiBase.py

@@ -1,5 +1,8 @@
 from DirectGuiGlobals import *
 from DirectGeometry import ROUND_TO
+import PandaObject
+import Task
+import string
 
 """
 Base class for all Direct Gui items.  Handles composite widgets and
@@ -86,7 +89,7 @@ Code Overview:
     are left unused.  If so, an error is raised.
 """
 
-class DirectGuiBase(PandaObject):
+class DirectGuiBase(PandaObject.PandaObject):
     def __init__(self):
         # Default id of all gui object, subclasses should override this
         self.guiId = 'guiObject'

+ 5 - 5
direct/src/gui/DirectGuiGlobals.py

@@ -3,12 +3,12 @@ Global definitions used by Direct Gui Classes and handy constants
 that can be used during widget construction
 """
 
-from PandaObject import *
-from PGTop import *
-from PGButton import *
+from PandaModules import *
+#from PGTop import *
+#from PGButton import *
 # Import these after PGButton to get actual class definitions
-from PGItem import *
-from PGFrameStyle import *
+#from PGItem import *
+#from PGFrameStyle import *
 # Helper classes used as components of Direct Gui Widgets
 import OnscreenText
 import OnscreenGeom