Active Background In Button
Button widget is a standard Tkinter widget For Graphical User Interface(GUI),which is used to perform a specific operation when it is clicked. Button is a widget which is designed for the user to interact with, i.e. if the button is pressed by mouse click some action might be started. Button can also contain text and images like labels.
Active Background represents the background of the button when the mouse hover the button.
******Your code Below*****
from tkinter import *
root= Tk()
root.title("Button Active background")
root.config(
root.config(background="#FFF8DC")
root.geometry(
root.geometry("900x400+350+86")
btn= Button(root, text="Click Me", font=("Times", 30, "bold"), activebackground="#76EEC6")
btn.pack(pady=20)
root.mainloop()
from tkinter import *
root= Tk()
root.title("Button Active background")
root.config(
root.config(background="#FFF8DC")
root.geometry(
root.geometry("900x400+350+86")
btn= Button(root, text="Click Me", font=("Times", 30, "bold"), activebackground="#76EEC6")
btn.pack(pady=20)
btn.pack(pady=20)
root.mainloop()
********End Code**********
Write Down Code Your Code Editor. To show Your Output. If Use Pycharm Press Shift+F10 and Show Your Output.
Enjoy..............
If You Want To Learn More Plz Visit www.newpost24.com
If You Find More Plz Visit This Page.
If You like this page Plz Share This Website. Thanks
ردحذفإرسال تعليق