Depending upon script complexity, I like to have debug info go to the console window while a script is running. I've noticed that I have to do a console.show() to make sure that the Pythonscript console is showing, if I want to see my console writes during a script run. The problem with that is that when the script completes, the >>> python prompt is active (has the caret) and I'm left wondering where my caret currently is in the editor window.
Is there a script command to move the focus back to the editor window that I can end my script with so that I see the flashing caret there and so my next keystrokes go to the editor window?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Depending upon script complexity, I like to have debug info go to the console window while a script is running. I've noticed that I have to do a console.show() to make sure that the Pythonscript console is showing, if I want to see my console writes during a script run. The problem with that is that when the script completes, the >>> python prompt is active (has the caret) and I'm left wondering where my caret currently is in the editor window.
Is there a script command to move the focus back to the editor window that I can end my script with so that I see the flashing caret there and so my next keystrokes go to the editor window?
notepad.activateBufferID(notepad.getCurrentBufferID())