Browse Source

gui elements now show their class name in their node name

Joe Shochet 19 years ago
parent
commit
91383bf77f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/gui/DirectGuiBase.py

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

@@ -760,7 +760,8 @@ class DirectGuiWidget(DirectGuiBase, NodePath):
             else:
                 apply(self.setColor, color)
         # Initialize names
-        self.setName(self.guiId)
+        # Putting the class name in helps with debugging.
+        self.setName("%s-%s" % (self.__class__.__name__, self.guiId))
         # Create
         self.stateNodePath = []
         for i in range(self['numStates']):