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.7.tar.gz
(7.4 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.7.tar.gz.
File metadata
- Download URL: tklive-0.1.7.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6d0a4f9ec9a602bf92d3a10e09272bc33aa8a93ef8bdf7dc7ed388933d166be
|
|
| MD5 |
ed06eaf442f17fddb9624af27b8cb866
|
|
| BLAKE2b-256 |
f1b53b740680d83a6a6cf75f982899770d3e9fce2b08cb14c87c47d257bdfb5a
|
File details
Details for the file tklive-0.1.7-py3-none-any.whl.
File metadata
- Download URL: tklive-0.1.7-py3-none-any.whl
- Upload date:
- Size: 7.7 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 |
7c7e10b0e4e20cad671de884187774603ac3dfd2a520f53e5ccc29838ef5170c
|
|
| MD5 |
cd9c107c619fb71957ae9ba10c26b8b1
|
|
| BLAKE2b-256 |
57f1f775b750216184791859223b21d51cb807fb8bc23b31dc74551b2e499328
|