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.1.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.1.tar.gz.
File metadata
- Download URL: tklive-0.1.1.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 |
5b9ad95fcf698d18c2c1fc4bfef40f637aa956da0c67c231a9c66db8047ac18e
|
|
| MD5 |
3d0f48aa5c5f53e5145e831f87400b1f
|
|
| BLAKE2b-256 |
cb2624a7a9a5d9cfb1ae520f9edc8cdb0e4fc14bf83e95698583860d832878ef
|
File details
Details for the file tklive-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tklive-0.1.1-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 |
2eb44b41fdd4caa36dc31b409d1bf72c65bfcc1a6688e11d132b5f4e112133ae
|
|
| MD5 |
ca9f65b2f9699d5ecec9d061ba37e44f
|
|
| BLAKE2b-256 |
44c8c86424fc4e547c341b07b68b48f4c351917d034c13c3e0f7449c3e8c2023
|