A lightweight animated desktop moon that subtly cycles through the lunar phases — with a system tray icon, adjustable speed, and a keyboard shortcut toggle.
- Displays an animated moon on your desktop.
- Click & drag to reposition it anywhere.
- Right-click tray icon to:
- Show/Hide the moon
- Adjust phase animation speed
- Quit the app
- Press
Ctrl + Manytime to toggle moon visibility. - Runs in background — perfect ambient companion.
Python 3Tkinter– GUIPillow (PIL)– Image processingpystray– System tray integrationkeyboard– Global hotkey handlingPyInstaller– Executable packaging
If you have the .exe file (Phases Of Moon.exe), simply double-click to run.
No installation or dependencies needed.
pip install pillow pystray keyboardpython app.py- Press
Ctrl + Mto instantly show/hide the moon.
- Right-click the tray icon → Set Phase Speed
- Enter time (in seconds) between phase changes (minimum:
0.5seconds)
To package as a standalone .exe, run:
pyinstaller --onefile --noconsole --name "Phases Of Moon" --icon=Images/MoonIcon.ico --add-data "Images;Images" app.py- Images are bundled inside the
.exe— no need to share separately. - Works only on Windows (due to global hotkey library
keyboard).
