2D Fractional display widget for Python Tkinter GUI developement
Project description
RangeDisplay 2021.7
2D Fractional display widget for Python Tkinter GUI developement.
Features:
- Range Display
- Dimensions and Colour customisable
Preview
Usage
Importing display
from 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.tar.gz
.
File metadata
- Download URL: RangeDisplay-2021.7.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 | b04d873a0a40236c417a54267f8875ddd930e1b97a3f54aa2b5884e8808e9ea8 |
|
MD5 | 9358f7e8b12c87b04f9e96e9df8e9301 |
|
BLAKE2b-256 | f857a301df33aa7e0fae5d7a1a344c7128bc00edf9519f1b0baec087fff2cc4c |