Menu

focus back to editor after console.show()

Help
Sasumner
2015-05-27
2016-11-07
  • Sasumner

    Sasumner - 2015-05-27

    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?

     
  • noname

    noname - 2016-11-07

    notepad.activateBufferID(notepad.getCurrentBufferID())

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.