Skip to content

LinuxEducation/AnimationButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animation Button

Example-1

animation_button.gif

Python Code

from tkinter import LEFT, X, NW
from animationButton import AnimationButton

'''Frame - container for buttons
'''
M = Frame()
M.pack(side=LEFT, padx=15)

'''Button - animated menu
'''
AnimationButton(M, text='Monday', bgcolor='green', fgcolor='black').pack(anchor=NW, fill=X)
AnimationButton(M, text='Tuesday', bgcolor='green', fgcolor='black').pack(anchor=NW, fill=X)
AnimationButton(M, text='Wednesday', bgcolor='green', fgcolor='black').pack(anchor=NW, fill=X)
AnimationButton(M, text='Thursday', bgcolor='green', fgcolor='black').pack(anchor=NW, fill=X)
AnimationButton(M, text='Friday', bgcolor='green', fgcolor='black').pack(anchor=NW, fill=X)
AnimationButton(M, text='Saturday', bgcolor='blue').pack(anchor=NW, fill=X)
AnimationButton(M, text='Sunday', bgcolor='blue').pack(anchor=NW, fill=X)

Example-2

animation_button-2.gif

Python Code

from tkinter import RIGHT, SE
from animationButton import AnimationButton

'''app is a master (root) window object
   first please create reference for Tk class
'''
AnimationButton(app, text='accept', fgcolor='black', event='1').pack(side=RIGHT, anchor=SE, padx=(5,10), pady=(0,5))
AnimationButton(app, text='cancel', fgcolor='black', event='1').pack(side=RIGHT, anchor=SE, pady=(0,5))

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy