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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | dff93b55cfeabbe0404bc37493c97226073dfec6b75b99f076695585da06147d |
|
MD5 | f9e58d1a12f0b4c10c1349af305efb41 |
|
BLAKE2b-256 | e8a60e64d6127f35bb3984a945fe6acd65e279c707505b6d8d97fa7f5a35c25c |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb8bdcbab29442f26dbdb337feb9eb37edb8be467310560be9968884e514d788 |
|
MD5 | 5f15000c5b9a9064763ab0752dbfe9fe |
|
BLAKE2b-256 | 4e4636438a6649f7a2e5a9cf1c9555a63329f5178e01338077480bcfbe36af71 |