Tkinter Widget keys() Method
The syntax of the Label( ) method is described in Python Tkinter Label.
Label(master, options, ...)
It also describes all the parameters of the options. In fact, Widget has a common method keys( ) to pass back all the parameters of this Widget in a list.
Tkinter Widget keys() Example
Passes back all the parameters of the labelLabel( ) method.
"""
Tkinter widget keys method example
"""
from tkinter import *
root = Tk()
root.title("apidemos.com")
label = Label(root,text="I like tkinter")
# print(label.keys())
label.pack()
print(label.keys())
root.mainloop()
Output:
This program focuses on the fact that all parameters of Label can be listed in the Python Shell window.