Python/Pygame: Can you run a program whilst having a Pygame window that can still update?
<p>this is my first question. What I would like to achieve is in a normal window for the text-based game to be running, however I would also like to have a pygame window running as well that shows a map that updates. Thank you in advance.</p>

<p>Likely in the case of Pygame, you can have simultaneous output to the graphical window and the standard text output.</p>

<p>The challenge will be how to obtain user input asynchronously (without blocking).</p>

<p>While <code>threads</code> are a good solution, there are others.</p>

<p>There are several solutions to that particular challenge in the following question: <a href="http://stackoverflow.com/questions/375427/non-blocking-read-on-a-subprocess-pipe-in-python?rq=1">Non-blocking read on a subprocess.PIPE in python</a></p>

<p>Another idea is to get the input in the graphical window.</p>

python pygame