Skip to main content

tkinter block framework

Project description

tkblock

tkblock is a package to support tkinter widget placement with relative ease.

There are ack functions for placing widgets in tkinter: place, grid, and p. If you are new to tkinter, it is difficult to distinguish between these three functions.

If you are new to tkinter, it is difficult to distinguish between these three.

Therefore, this package allows users to place widgets without having to call the place function.

For specifying the layout for placing the widget, we use the old HTML/CSS idea of table layout.

Therefore, the number of rows and columns of the table are specified when the root object is created, and the widget is placed by specifying those rows and columns when the widget is created.

how to use

Please refer to the examples under Sample.

Some basic usage is described below.

from tkinter import ttk

from tkblock.block_service import BlockService

root = BlockService.init(10, 20, 500, 1000)

frame = BlockService.create_frame("test")

label = ttk.Label(self.frame, text="label", anchor=tk.CENTER)

label.layout = BlockService.layout(5, 6, 10, 12)

BlockService.place_frame_widget()

frame.tkraise()

LICENSE

This software is released under the MIT License, see LICENSE.

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

tkblock-0.0.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

tkblock-0.0.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tkblock-0.0.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for tkblock-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dff93b55cfeabbe0404bc37493c97226073dfec6b75b99f076695585da06147d
MD5 f9e58d1a12f0b4c10c1349af305efb41
BLAKE2b-256 e8a60e64d6127f35bb3984a945fe6acd65e279c707505b6d8d97fa7f5a35c25c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tkblock-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for tkblock-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb8bdcbab29442f26dbdb337feb9eb37edb8be467310560be9968884e514d788
MD5 5f15000c5b9a9064763ab0752dbfe9fe
BLAKE2b-256 4e4636438a6649f7a2e5a9cf1c9555a63329f5178e01338077480bcfbe36af71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page