2D Fractional display widget for Python Tkinter GUI developement
Project description
RangeDisplay 2021.7.1
2D Fractional display widget for Python Tkinter GUI developement.
Features:
- Range Display
- Dimensions and Colour customisable
Preview
Usage
Importing display
from RangeDisplay.RangeDisplay import RangeDisplay
Creating RangeDisplay widget:
from tkinter.ttk import *
from tkinter import as tk
root = tk.Tk()
display = RangeDisplay(root, 200, 200)
display.pack() # or grid or place method could be used
root.mainloop()
Updating display fraction
display.update(0.5,0.5,0.75,0.75)
Attributes
Attribute | Default value | Acceptable value |
---|---|---|
master | N/A | parent like Tk instance, TopLevel, or Frame etc. |
Width | N/A | width of widget in px |
Height | N/A | height of widget in px |
padX | 6 | x padding distributed both sides of widget |
padY | 6 | y padding distributed both sides of widget |
radiusO | 20 | percentage rounding the corners of base display |
radiusI | 20 | percentage rounding the corners of inner display |
bdSize | 2 | thickness of border of displays and reference lines in px |
bgColor | "#f3ffed" | color of base display |
bdColor | "#000000" | color of border and reference lines |
fgColor | "#2ef245" | color of inner display |
xsf | 0.5 | x start fraction 0 to 1 |
xef | 0.8 | x end fraction 0 to 1 |
ysf | 0.2 | y start fraction 0 to 1 |
yef | 0.6 | y end fraction 0 to 1 |
Words of Developer
This is the first version of this library. It is one of its kind widget for tkinter. When I was developing a tool for my college project I found that at the time no inbuilt or external tool is available for tkinter allowing range selection. However, range selection is a high demand tool specially for applications dealing with data visualizations. I would appreciate any developer from any community who wants to contribute to this project.
Being a graduation student, I am unable to work over it for long. I will try to release next version having more features as soon as possible.
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
File details
Details for the file RangeDisplay-2021.7.1.tar.gz
.
File metadata
- Download URL: RangeDisplay-2021.7.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88d55636dbf388566873570fbc5901417dedfff0a23919f527d205520b0c338e |
|
MD5 | 39cb1e67511209e184329da61c33355e |
|
BLAKE2b-256 | ad1b1711885fc0e6d39d02f133a03d025f371785521cda4cf46b210f1ff3b63e |