Skip to content

kayra4526/pet-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🐾 Desktop Cat (Virtual Pet)

A lightweight, borderless, and completely transparent desktop pet built with Python and Tkinter! This cute little cat emoji (🐱) roams freely at the bottom of your screen, pacing back and forth randomly while you work.

Note: This project includes specific native transparency configurations specially tailored for macOS environments.

✨ Features

  • Always on Top: The desktop pet stays visible above your open windows, keeping you company without getting in the way.
  • True Transparency: Seamlessly integrates with your desktop wallpaper using macOS systemTransparent attributes.
  • Randomized Movement: The cat makes unpredictable horizontal steps—sometimes moving fast, sometimes taking a little break.
  • Screen Wrap-around: Infinite walking! If the cat walks off the right edge of your screen, it smoothly reappears from the left side.

🛠️ Installation & Usage

Ensure you have Python installed. The tkinter library comes pre-installed with standard Python distributions, so no extra pip install is needed!

Run the script: python cat.py

🍏 Note for Windows/Linux Users This script uses root.config(bg='systemTransparent') to achieve perfect transparency on macOS. If you are running this on Windows, you can easily adapt the code by replacing the Mac commands with root.wm_attributes('-transparentcolor', 'yourcolor').

Releases

No releases published

Packages

 
 
 

Contributors

Languages