PgSlideShow
A small image slideshow app written in python using pygame.
Install / Use
/learn @bradmontgomery/PgSlideShowREADME
pgSlideShow
pgSlideShow is an image slideshow application written in Python using pygame. It recursively searches a given directory for image files, and then displays them in Fullscreen mode. Images are currently resized to fit the screen, so some pixelization may occur.
Note: this code aims for simplicity over performance. The initial search for image files is slow and probably takes up more memory than it should.
Requirements
You need to have pygame installed. See the pygame installation docs.
Installation
Using uv:
uv pip install -e .
Usage
This is a command-line application. To run it, type the following command, specifying the path to the directory in which your images are located.
If no directory is given, pgSlideShow will recursively search for images in the current directory.
python -m pgslideshow [directory]
Or, if installed:
pgslideshow [directory]
Command-line Options
Run pgslideshow -h for more details:
--waittime: Time to wait between images (seconds, default: 1)--title: Set the window title--help: Show help message
History
This was written back in 2007 when I first started tinkering with pygame. See this blog post.
License
This code is available under the MIT License.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
