Fundamentals 4 min read

Create a Cute Slime Desktop Pet with Python – Step‑by‑Step Guide

This tutorial explains how to set up, customize, and package a playful slime desktop pet written in Python, covering required dependencies, command‑line installation, configuration options, and creating a standalone executable for easy distribution.

Python Programming Learning Circle
Python Programming Learning Circle
Python Programming Learning Circle
Create a Cute Slime Desktop Pet with Python – Step‑by‑Step Guide

Slime Desktop Pet

A cute desktop slime pet that moves on your taskbar and provides a visual settings interface.

Features

The adorable slime automatically moves on the taskbar.

Multiple animation effects: bounce, slide, random.

Jelly‑like 3D effect for a realistic appearance.

Supports custom GIF images.

Adjustable slime color, size, and speed.

System tray icon for easy control.

Simple settings UI.

Installation & Running

Direct execution (requires Python 3.6+):

<code>pip install -r requirements.txt</code>
<code>python slime_pet.py</code>

Creating an executable:

<code>python create_icon.py</code>
<code>python build.py</code>

After building, find slime_pet.exe in the dist folder and double‑click to run.

Usage

Right‑click the system‑tray icon to open the menu (Settings/Exit). In the settings window you can adjust:

Custom GIF image (any GIF file).

Slime color.

Jelly 3D effect.

Movement speed.

Slime size.

Animation type.

To use a custom GIF, check “Use custom GIF image”, click “Select” to choose a file, then click “Apply” to save.

Packaging

The program is packaged with PyInstaller into a single executable, so the distributed file does not require Python or additional dependencies.

Source Code

GitHub repository: https://github.com/hhse/PythonGG

Pythontutorialpyinstallerdesktop-petslime
Python Programming Learning Circle
Written by

Python Programming Learning Circle

A global community of Chinese Python developers offering technical articles, columns, original video tutorials, and problem sets. Topics include web full‑stack development, web scraping, data analysis, natural language processing, image processing, machine learning, automated testing, DevOps automation, and big data.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.