Skip to main content

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 except bg/background since the background is transparent.
    • opacity - Used to specify the opacity of the contents on a scale of 0 to 1 (where 0 implies transparent and 1 implies opaque). The default is set to 1.
    • 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 to SystemButtonFace .

    Methods

    • The following have the same use as that of the corresponding methods in native tkinter widgets
      • pack
      • pack_forget
      • config/configure
      • destroy

    Current Limitations / Issues

    • Only pack geometry manager can be used.
    • Can not be treated as a window in Canvas.create_window() or Text.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()
    

Release files for tkinterwidgets 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tkinterwidgets 0.0.3
File Size Uploaded
tkinterwidgets-0.0.3.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tkinterwidgets 0.0.3
File Interpreter ABI Platform
tkinterwidgets-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / tkinterwidgets-0.0.3.tar.gz

Download URL tkinterwidgets-0.0.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
45625b6f78ee0fc4f649dbe91ea7faae5179b0d1e46538ad87ab0e033e13ceec
BLAKE2b-256 checksum
How to use checksums
2556ddc26e8afa4d16cc52b4e42d657d462f8b925ca8145c1894ee618bba21ca
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / tkinterwidgets-0.0.3-py3-none-any.whl

Download URL tkinterwidgets-0.0.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67757c00d8d267eafa8918d9e986e83c23478acb8c822e93d75d5caa1f1a942a
BLAKE2b-256 checksum
How to use checksums
c51c1d5d2a1c9d88577948cd52815dd4ef88e03c90addca1f12b062566a053c2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page