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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tklive-0.1.5.tar.gz
  • Upload date:
  • Size: 5.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.5.tar.gz
Algorithm Hash digest
SHA256 d905c94543fb2cce0d14f553e0f3b797db762822efd8132f62ddf8c7761726a4
MD5 3663d4c38e022a55045f9971664f2d3a
BLAKE2b-256 0e364bcecc094c5930e3d8a566ae8baaa6bdfcb4a290f368a15fda82a6778063

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tklive-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 af33129e5e5d676c316a3cf8a214166bb5a59190724dc62704082c524d38231d
MD5 e35bd475868af0004d90781c87c48f76
BLAKE2b-256 9a07ccdc3ee2ccab3c38d6c3fec2cb54cf82eaa1f0d7793d458061c0bdd61817

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