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.9.tar.gz (7.4 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.9-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tklive-0.1.9.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

Hashes for tklive-0.1.9.tar.gz
Algorithm Hash digest
SHA256 f6714b5a2db6ad1745d73344d9105232f3c7b2e42b64a71d1c0cc14024159fc3
MD5 fbeef9c753536c3f5bd8de0d3641d301
BLAKE2b-256 130c79b2571e0da8ac219b6901cb82735fe95109e489486eeea9febdafdc2d8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tklive-0.1.9-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

Hashes for tklive-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 aef4b8de9fd0e68cd62c27a77e9ea8049e74b8ef1624dfeb02c7e4e065f4fa52
MD5 ba4baf13f4fcf9f322e21b84b379bc7a
BLAKE2b-256 55c0da3d4bbdd815518e59d7609747a6eb0268a9120c37a27a27c804747ff600

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