Skip to main content

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


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.6.tar.gz (7.5 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.6-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tklive-0.1.6.tar.gz
  • Upload date:
  • Size: 7.5 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.6.tar.gz
Algorithm Hash digest
SHA256 ea91bbe730c7dc25128c6af8efb553dc614f85ec8593fb7ac5874fb4baf83833
MD5 b76555d19e7f5e8c3dbd03f4283cc89e
BLAKE2b-256 96e3f431311a1b33edad9d04603bdfffff1770435cbc8f716bd76bc835f35bb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tklive-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 aae5fbcb1ab38089094a063465c6f7bb7ee69f3ffc9e8a657e18c1506f3e38cf
MD5 70dd9df532e5f95287485f70b854b7ae
BLAKE2b-256 78eda17dc5c5c6892f77210794eb9a5b7a58acb6710b13140a0bd52a246c403e

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