From 91383bf77f129fbea163f036d6008d7e799f37b4 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Thu, 18 Jan 2007 02:02:41 +0000 Subject: [PATCH] gui elements now show their class name in their node name --- direct/src/gui/DirectGuiBase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/direct/src/gui/DirectGuiBase.py b/direct/src/gui/DirectGuiBase.py index 982e60cbe9..a73193cec2 100644 --- a/direct/src/gui/DirectGuiBase.py +++ b/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']):