Skip to main content

Удобное дополнение для «Toolsan»

Project description

# 🛠️ Toolsan Desktop

> Build GUI apps in seconds — zero boilerplate, pure Python!

[![PyPI - Version](https://img.shields.io/pypi/v/toolsan-desktop)](https://pypi.org/project/toolsan-desktop/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/toolsan-desktop)](https://pypi.org/project/toolsan-desktop/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

---

## ⚡ One-liner

```python
import toolsan_desktop as td
td.window("Epic App").mainloop()

BOOM. You've got a window.


📦 Install

pip install toolsan-desktop

That's it. Dependencies auto-install. You're welcome.


🚀 Features

🪟 window() — Create a window

win = td.window(
    title="My App",        # Custom title
    fullscreen=False,      # Go fullscreen? 
    geometry="800x600",    # Width x Height
    bg="#1a1a2e"          # Hex or color name
)

🔘 button() — Add a button

def Hello():
    print("Hello!")

td.button(
    win,                   # Window
    text="PUSH",     # Button text
    sizex=200,             # Width
    sizey=60,              # Height
    bg="#e94560",          # Background
    indentx=300,           # X position
    indenty=400,           # Y position
    com=Hello        # Callback
)

🖼️ image() — Show images

td.image(
    win,                   # Window
    path="meme.jpg",       # Image path
    x=100, y=100,          # Position
    width=300, height=200  # Resize (optional)
)

✍️ dprint() — Typewriter effect

td.dprint(
    win,                          # Window
    text="Wake up, Neo...",       # Text
    delay=0.05,                   # Speed (seconds/char)
    color="#00ff41",              # Hack the planet
    font=("Courier", 20),         # Font & size
    x=50, y=50                    # Position
)

🔊 speak() — Make it talk

td.speak(
    text="I can speak!",    # What to say
    lang='en',              # 'en', 'ru', 'fr', etc.
    slow=False              # Slow mode? why not
)

🎵 play() — Play audio

td.play("boss_fight.mp3")  # MP3, WAV, OGG — it's all good

🎮 Full Example

import toolsan_desktop as td

# Window
win = td.window("Cyber Assistant", bg="#0a0a0a", geometry="700x500")

# Animated title
td.dprint(win, ">>> SYSTEM READY", delay=0.08, font=("Courier", 28), color="#00ff41", x=180, y=80)

# Button that talks
def greet():
    td.speak("Hello, commander!")
    td.dprint(win, "> Voice module activated", delay=0.02, font=("Courier", 14), color="#00ff41", x=200, y=200)

td.button(win, text="🤖 GREET", sizex=200, sizey=60, bg="#00ff41", indentx=250, indenty=350, com=greet)

# RUN
win.mainloop()

🤯 Why Toolsan Desktop?

· ✅ No boilerplate — 1 line = working window · ✅ Auto-installs deps — pygame, pillow, gtts · ✅ Tkinter power — but 10x simpler · ✅ TTS out of the box — your app talks · ✅ Typewriter text — like in games · ✅ Images & audio — zero hassle · ✅ MIT license — use it anywhere


🧩 Dependencies

Library What it does pygame Audio playback pillow Image handling gtts Text-to-speech tkinter GUI (built-in)

All installed automatically. No manual setup.


📈 Roadmap

· entry() — input fields · checkbox() — toggles · menu() — dropdowns · progress() — loading bars · Drag & drop support

PRs welcome! Let's make this the easiest GUI library ever.


📝 License

MIT — do whatever you want. Just don't blame us if your app becomes sentient.


⭐ Show Love

If this saved you 10 minutes of boilerplate hell — drop a ⭐ on GitHub!

⬆ Back to top


---

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toolsan_desktop-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toolsan_desktop-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file toolsan_desktop-0.0.2.tar.gz.

File metadata

  • Download URL: toolsan_desktop-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for toolsan_desktop-0.0.2.tar.gz
Algorithm Hash digest
SHA256 362075bbd228a5d86501cfea1b93e895aa9f5f7c00ecd5165a3a6b55ba4bdb8d
MD5 b3c12c1da53c21037f50ca4fe2710eb3
BLAKE2b-256 3ce8fa3d0e64220212a10e37efe6d46ce73783f20b9cb2e1e507584c10d9cd11

See more details on using hashes here.

File details

Details for the file toolsan_desktop-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for toolsan_desktop-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ea9a01c85c7d4a92f047f7f8ed4cdd911ffd29d40da532fef04d55dff7c4a64a
MD5 12d20735dd4a22cbb884dc848a13a0bb
BLAKE2b-256 3977c6800e55b6e2777033208d1734bcee1d093da71ff8b54270d57130445ac7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page