Search code examples
pythoncommand-linepositioningvpython

setting python command line position


I am wondering if there is a way to set the position of where the command line opens. I am using python 2.7 with VPython for my A-Level computing project. It currently opens behind the two VPython windows, but I would prefer it to open underneath so was just wondering if this was possible. Thanks.


Solution

  • Python doesn't "own" the console it's running in.

    For a Windows-specific answer you could look into the Win32 APIs that control window focus, size, and position. See this question for more information: How can I get the window focused on Windows and re-size it?