Text-based game graphics in Python

I'm pretty new to programming, and I'm creating a simple text-based game.>

I'm wondering if there is a simple way to create my own terminal-type window with which I can place coloured input etc.

Is there a graphics module well suited to this? I'm using Mac, but I would like it to work on Windows as well



The Tkinter Text Widget will do what you ask. the IDLE main window is implemented as one, if you want to play with an example.

You could use the termcolor library - it that what you're looking for?

On Windows things are trickier. See this SO answer - you should resort to win32console and some ctypes. The answer has some code and links to other articles.

For game programming with Python, I would always recommend PyGame. It is not very complex and enables you to easily use input, graphics and sound. As a start:


Need Your Help

how to wait for xlwings to complete python code in vba?

python excel vba xlwings

I am calling RunPython in VBA from the xlwings module with the following code:

SCCM 2007 Java Query

sql sccm

I would like to generate a query that lists all PCs with any version of Java except for 6. They query I have created shows PCs with any version of Java including 6, I want to list ONLY PCs that have