Button height and width in tkinter
In order to customize the Button size, You can use the width and height property of the button widget.
******Your code Below*****
from tkinter import *
root= Tk()
root.title("Button height and width")
root.config(background="#FFF8DC")
root.geometry("900x400+350+86")
btn= Button(root, text="Click Me", font=("Times", 30, "bold"),height=20, width=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.
Post a Comment