Skip to main content

Live hot-reload for tkinter and customtkinter apps

Project description

tklive

Live hot-reload für tkinter und customtkinter Apps.
Speichere deine Datei → UI updated sich sofort ohne das Fenster zu schließen.

Installation

pip install tklive

Verwendung

Füge zwei Zeilen zu deinem Projekt hinzu:

import tkinter as tk
from tklive import live

root = tk.Tk()

# ... dein gesamter normaler Code bleibt unverändert ...

live(root, __file__)  # ← eine Zeile ans Ende
root.mainloop()

Speichere die Datei → UI reloaded live. Oder Ctrl+R für manuellen Reload.

Features

  • ✅ Fenster bleibt offen – kein Neustart
  • ✅ State-Erhalt (Entry, Text, Tabs, Scrollposition, Fenstergröße)
  • ✅ customtkinter Support (CTkEntry, CTkTextbox, CTkSlider, CTkTabview ...)
  • ✅ ttk Support (Notebook, Treeview, Combobox ...)
  • ✅ Multi-File Support

Mehrere Dateien beobachten

live(root, __file__, watch_files=["ui.py", "components.py"])

Lizenz

MIT

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

tklive-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

tklive-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file tklive-0.1.0.tar.gz.

File metadata

  • Download URL: tklive-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tklive-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8643c49f0bd681db35c3988ab59c343fb907820839b762d9bc2b8ec0835d21a7
MD5 d5bb594d1ef3ab17ecb4ff608e8783f0
BLAKE2b-256 28994f58c1cc24416a051f5cc6c7984019caee6875519fcafc7f2debed7af267

See more details on using hashes here.

File details

Details for the file tklive-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tklive-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tklive-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 286209b772bbe7fde23877fa859e92180949b8a1a160c715714c659848576630
MD5 6fdfded5f748db382a117bea1b90e320
BLAKE2b-256 a49e10c621a00531d021b0405cd83abc9dea5990bd97af17b81ecd4ca9c91789

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