If you want to know what attributes you have given in your label then you can do it. From here you can find all the attributes in your label.

Example:

from tkinter import *

window = Tk()
window.title("About To Know Attributes")
window.geometry("800x450+500+86")
window.config(bg="#FF6103")

label1 = Label(window, text="About Keys", bg="white",borderwidth=10, fg="red",
                          font=("helvetica", 20,"bold"),width=30, height=6, relief="solid")
label1.pack()
print(label1.keys())

window.mainloop()

Write Down Code Your Code Editor. To show Your Output. If Use Pycharm Press Shift+F10 and Show Your Output.


Enjoy.............

Post a Comment

أحدث أقدم