Button Underline in tkinter
Sets the option to make Button text Underlined.
******Your code Below*****
from tkinter import *
root= Tk()
root.title("Button Underline")
root.config(background="#FFF8DC")
root.geometry("900x500+350+86")
btn1= Button(root, text="Normal Button Underline",font=("Times", 20,"bold","underline"),padx=20, pady=20)
btn2= Button(root, text="Disable Button Underline",font=("Times", 20,"bold", "underline"))
btn3= Button(root, text="Only Button",font=("Times", 20, "bold"),padx=20, pady=7)
btn4= Button(root, text="Button Underline",font=("Times", 20,"bold", "underline"),padx=20, pady=7)
btn1.pack(pady=5)
btn2.pack(pady=5)
btn3.pack(pady=5)
btn4.pack(pady=5)
root.mainloop()
********End Code**********
Write Down Code Your Code Editor. To show Your Output. If Use Pycharm Press Shift+F10 and Show Your Output.
Post a Comment