I don’t think so, Thomas. Yes, sure there is a miss, but there is nothing accepts “PRINT”+…
I inserted the line to print the dashes to the loop.
This is the result with “PRINT” :
PRINT is a global in DirectGuiGlobals.py.
# User can bind commands to these gui events
DESTROY = 'destroy-'
PRINT = 'print-'
...
The result with DGG.PRINT :
Thomas, what do you think about –[THIS]– ?
Do you have any suggestion for that ?
Thanks.
well panda still crashed when i tried to use it
speaking about aspect2d stuff… looks intresting but i havent looked into the very details. is your code something like an gui-editor?
Tell me, how do you guys trigger the “print-yourDGUIname” ? You have to send it using the messenger, right ?
Then it requires me to know the name of every DGUI objects in my scene. That’s what make me added “self.printConfig()” to editStop method at my very 1st attempt on this long time ago, so everytime I release my MMB, the transform get printed. Perhaps by doing so, I bypass the problem you guys suffer from.
oh, BTW, what’s the error ?
relevant error… left aside the trace up to the line i execute:
File "ff8online.py", line 117, in hideChat
self.chatFrame.printConfig()
File "/usr/share/panda3d/direct/src/gui/DirectGuiBase.py", line 1045, in printConfig
messenger.send(PRINT + child.getName(), [indent + 2])
NameError: global name 'PRINT' is not defined
DGG.PRINT is correct. I have made the correction; thanks for discovering it. At some point over the last year we changed from an implicit import of all the symbols in DirectGuiGlobals to an explicit import, and thus we had to make a lot of changes of the form PRINT -> DGG.PRINT. This is one that slipped through the cracks; sorry about that.