Skip to main content

A utility for building Tkinter widget trees from YAML files.

Project description

YAML Tkinter

A utility for building Tkinter widget trees from YAML files.

This module provides the Builder class, which reads a YAML file describing the widget hierarchy and properties, then instantiates and configures Tkinter widgets accordingly. It supports custom branch classes, variable binding, and flexible widget configuration, making it easy to define complex GUIs declaratively.

YAML files should specify the widget structure, options, and variables. See the example YAML and widget classes for details.

Install

pip install yamltk

Demo

import tkinter as tk
import yamltk

class Demo(tk.Tk):
    yaml_file = 'demo.yaml'

root = yamltk.build(Demo)
root.mainloop()

demo.yaml:

Demo:
    title: Demo application
    geometry: 300x200
    children:
        - Label:
            text: Hello world!
            pack: top

For more details, see the example folder.

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

yamltk-0.0.1.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

yamltk-0.0.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file yamltk-0.0.1.tar.gz.

File metadata

  • Download URL: yamltk-0.0.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for yamltk-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6b8e398795012f2ef0a1b69f4c09977f61e32e63abaa5b1f62c722fcd8d3422e
MD5 bdaa368f42171d293c318cf99ac36377
BLAKE2b-256 fa6d57c0e8c5c329be978781069701514dc9a522fc4300fe42170cfbeec3e427

See more details on using hashes here.

File details

Details for the file yamltk-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: yamltk-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for yamltk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cafeb868c1447a2ec59c2101b4a151c156237ffa2e45178d41bce34ae169ae60
MD5 309493ab4797792290acee0256be420a
BLAKE2b-256 802dbff48a035484d809c03a9755367f17bf5480b1fe485655c4ad699fe3063c

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