¿ªÔÆÌåÓý

Locked How to terminate python script


 

I have a python script which runs a nice throttle.? It builds a window with necessary buttons, etc.? However I am trying to figure a way of closing the window (terminating the script) from within the script but in the same way as clicking on the?red title bar close button.? I have tried "exit()" but that closes down PanelPro altogether.? I have tried "f.dispose()" as?in one of the example scripts but?since I have my script in a Class, I am apparently not getting the f.dispose()?at the right level. within the code.? I wanted to execute it from a defined function called from a button click.?

Join [email protected] to automatically receive all group messages.