Tkinter Custom Widgets
Project description
Tkinter Custom Widgets
This package contains custom tkinter
widgets that might be useful.
Installation
pip install tkinterwidgets
Widgets
-
Label
Features
- Transparent background
- Control opacity
Usage
tkinterwidgets.Label(master, OPTIONS)
Options
- All the options of native
tkinter
Label
exceptbg
/background
since the background is transparent. opacity
- Used to specify the opacity of the contents on a scale of0
to1
(where0
implies transparent and1
implies opaque). The default is set to1
.transcolor
- Used to specify the color to be used to create the transparency effect (you can imagine this as a green screen but of the specified color, make sure that the visible contents of the label do not have this color). The default is set toSystemButtonFace
.
Methods
- The following have the same use as that of the corresponding methods in native
tkinter
widgetspack
pack_forget
config
/configure
destroy
Current Limitations / Issues
- Only
pack
geometry manager can be used. - Can not be treated as a
window
inCanvas.create_window()
orText.window_create()
or any similar usage. - Label might move outside the window when resizing past it in some cases.
Sample Code
from tkinter import * import tkinterwidgets as tkw root=Tk() root.config(bg='yellow') label=Label(root,text='Default Label') label.pack() trans_label=tkw.Label(root,text='tkinterwidgets Label',opacity=0.7) trans_label.pack(pady=10) root.mainloop()
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
tkinterwidgets-0.0.3.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file tkinterwidgets-0.0.3.tar.gz
.
File metadata
- Download URL: tkinterwidgets-0.0.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45625b6f78ee0fc4f649dbe91ea7faae5179b0d1e46538ad87ab0e033e13ceec |
|
MD5 | b23cdd70ae83c68c43f8758a4ca41e96 |
|
BLAKE2b-256 | 2556ddc26e8afa4d16cc52b4e42d657d462f8b925ca8145c1894ee618bba21ca |
File details
Details for the file tkinterwidgets-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: tkinterwidgets-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67757c00d8d267eafa8918d9e986e83c23478acb8c822e93d75d5caa1f1a942a |
|
MD5 | 125182342dd582b574697e643c154165 |
|
BLAKE2b-256 | c51c1d5d2a1c9d88577948cd52815dd4ef88e03c90addca1f12b062566a053c2 |