Live hot-reload for tkinter and customtkinter apps
Project description
tklive
Live hot-reload for tkinter and customtkinter apps.
Save your file → UI updates instantly without closing the window.
Installation
pip install tklive
Usage
Add two lines to your project:
import tkinter as tk
from tklive import live
root = tk.Tk()
# ... your entire code stays exactly as it is ...
live(root, __file__) # ← one line at the end
root.mainloop()
Save the file → UI reloads live. Or press Ctrl+R for manual reload.
Features
- ✅ Window stays open – no restart
- ✅ State preservation (Entry, Text, Tabs, Scroll position, Window size)
- ✅ customtkinter support (CTkEntry, CTkTextbox, CTkSlider, CTkTabview ...)
- ✅ ttk support (Notebook, Treeview, Combobox ...)
- ✅ Multi-file support
Watch multiple files
live(root, __file__, watch_files=["ui.py", "components.py"])
License
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.2.tar.gz
(5.2 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.2.tar.gz.
File metadata
- Download URL: tklive-0.1.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9957e8201e4feb4c3930a2052618cab4661e460b86b5b19403315ac97bdf860b
|
|
| MD5 |
f6dcd4d2bf5df36dea9d0c2a991d3c29
|
|
| BLAKE2b-256 |
f12d99595a444dc6c2895fb15acdac2f1cbffd182547aaabe71297ef532d9c6a
|
File details
Details for the file tklive-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tklive-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.9 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 |
ea37d1d4743f519205f0abe8b65d5bf31c98ad2d685e6d7b81e7d4dfd086f085
|
|
| MD5 |
de926619e160d3b946d74c0e5f768c57
|
|
| BLAKE2b-256 |
2e6b7443ae13500119fac163da19113fb7c3c107aa19d78d2ef942272d3e6a9d
|