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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8643c49f0bd681db35c3988ab59c343fb907820839b762d9bc2b8ec0835d21a7
|
|
| MD5 |
d5bb594d1ef3ab17ecb4ff608e8783f0
|
|
| BLAKE2b-256 |
28994f58c1cc24416a051f5cc6c7984019caee6875519fcafc7f2debed7af267
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
286209b772bbe7fde23877fa859e92180949b8a1a160c715714c659848576630
|
|
| MD5 |
6fdfded5f748db382a117bea1b90e320
|
|
| BLAKE2b-256 |
a49e10c621a00531d021b0405cd83abc9dea5990bd97af17b81ecd4ca9c91789
|