Giter Club home page Giter Club logo

tkinterwidgets's Introduction

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()

tkinterwidgets's People

Contributors

astqx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tkinterwidgets's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.