Skip to main content

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

    Can be used in the same manner as the default Label of tkinter, with the following exceptions:

    • Specifying the parent is a compulsory positional argument.
    • Additional optional parameter of opacity can be provided to control the opacity of the contents on a scale of 0 to 1 (where 0 implies transparent and 1 implies opaque)

    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


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.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

tkinterwidgets-0.0.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page