OKpy - Close UI After Run

Is there a method or state i should use to close the user interface after the run button is clicked? At the moment it always seems to stay open in the background and if the users doesn’t notice this they can end up with multiple versions of the UI open.

I have tired “window.Close()” but I’m getting window is not defined error.


Im testing version 1.8.0 today, but the UI not closing unless you manually hit the “X” was the same in v1.7…

1 Like

Verry good question @jonny89 ! no way to do that so far, but we should definitely implement a toggle in the editor mode that lets you tick “close after run”. You can except to see this implemented.