Skip to main content

A simplified Tkinter widget framework with grid layout engine

Project description

eztk

A simplified Tkinter widget framework with a grid layout engine.

eztk wraps Tkinter's widget creation and grid placement into a compact API. It provides:

  • TkWidgetDef — a unified wrapper for any Tkinter widget, tracking position, data, and parent/child relationships
  • EasyTk — the root application class
  • Notebook — a lightweight replacement for ttk.Notebook
  • Grid layout constantsNEXT_ROW, SAME_COL, EXTEND_ROW, etc. for declarative widget placement

Install

pip install eztk

Image features (thumbnails, OpenCV display) require additional dependencies:

pip install eztk[images]

Quick start

from eztk import eztk

app = eztk.EasyTk()
app.add_label(text="Hello, world!")
app.add_button("Click me", lambda: print("clicked"))
app.tkw.mainloop()

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

eztk-0.1.1.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eztk-0.1.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file eztk-0.1.1.tar.gz.

File metadata

  • Download URL: eztk-0.1.1.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for eztk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f48323494b23d40a64baa752c0336ca19c905633a19214254418b1b63a5ee246
MD5 170cd62c5d7e1e30edb024e320eccead
BLAKE2b-256 4fd7980a4b981c9689892861941a3c513f7bbd6c6dd0da2ec302e427c77a047c

See more details on using hashes here.

File details

Details for the file eztk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: eztk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for eztk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f44b06c054f464a8707f33fd94ef37d1ee4a1f131f45199d6988923bc6332dc2
MD5 0cf9cc600f2c4ac8731bc770e44a2a7b
BLAKE2b-256 e73c0c55c4b57aee8135036fcf0bed6244791a23504a1d46d47fda1d19e6e255

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