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.0.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.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eztk-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b6ba1ea12c686b9dce04103bcb90774b8381e8caef9643a6c486622cc8cce4ad
MD5 35e129092e45fbe383ded781903fa41c
BLAKE2b-256 073ce138aa44af499c59786ceebf133859dea5bc29fecee21b80b400075599a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eztk-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb0344924becf23352abdd765530f1e7d37d7bcbb82cc725797f59d9bc4cd075
MD5 ca1f0d7065b898546d840477b7ec46df
BLAKE2b-256 5b9501e60fbec86707d7fa3c87e787c94dcabff498c9a8efccc50dd43793648f

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