to close the dialog after pause
YudinEd
Posts: 90
Hi!
I can't understand how to close the dialog after pause automatically without pressing the buttons.
The task is simple, but... :)
Comments
wdialog.hide()
Sorry. But hide() and close() - it's not the same thing.
I don"t know what condition I can use to exit the dialog and close the script.
Approximately:
1) open new DzDialog
2) If (condition or sleep(2000)) then DzDialog.close() and to terminate script
3) DzDialog.exec()
:)
Have you looked at the dialogue sample script http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/general_ui/simple_dialog/start ?
Hi!
I'll try to explain more clearly using example.
Everything is simple. In the script opens a window with information.
After a few seconds, the dialog box closes itself wthout pressing buttons
//wDlg.exec()
wDlg.show ()
sleep(2000)
Ok then.
Cool. Both options are working. Thanks.
armando_cg25_555c08aa3d , it's the interesting trick with show() ; sleep(2000) instead of exec()