In Scene Graph SDK we have a Dialog component. It looks like a modal, but doesn't behave as a modal in the code.
Here is explatation:
m.top.dialog = m.dialog
print "after show", m
"after show" outputs to console immediately.
So, I must to observe a field and catch dialog closing in event-driven style.
Can I do REALLY modal dialog, that stops other statement execution while dialog shown? Another words, to make and use function like this:
result = askDialog() ' <- dialog invoked here.