THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/03/2012 at 12:37, xxxxxxxx wrote:
I started learning Python about 1 year ago, I'm fimiliar with Pythonsyntax and meanwhile with OOP structures as well.
Now I'm trying to get deeper into Py4d so these are my first steps.
I have a very basic problem:
from c4d import gui
gui.QuestionDialog("Do you think I am a dialog?")
if True:
print ("You are right.\n I am a dialog")
else:
print ("You are wrong.\n I really am a dialog.")
Basicly this works but its buggy.
The documentation says the gui.QuestionDialog() pops up a dialog with a "yes" and "no" button and returns ****True if the user answered Yes, otherwise False.
But in my case I get True either way, at least I get the print from the True value either way. No matter if click "yes" or "no".
Why? ****