.pyw file
A Python program file for Windows that runs without opening a console window, used for graphical programs.
In more detail
Windows runs .pyw files with pythonw.exe, which has no terminal, so print output and error messages are not visible. Use .py while developing and switch to .pyw only for a finished graphical program.
Related terms
- .py file — A plain text file whose name ends in .py, holding Python source code that the interpreter can run or import.
- Windows — Microsoft's operating system for desktops and servers.
- graphics.py — A small teaching library by John Zelle, built on tkinter, for drawing shapes, text and entry boxes in a window.
Taught in
- Sample Graphics Programs — Hands-on Python: Complete Video Course & Book