i'm new in tkinter so I need some help with the tkinter's Entry widget.
I'm stuck on the insertborderwidth
and insertwidth
option. My code is....
root = tk.Tk()
root.geometry("300x350")
Label1 = tk.Label(root, text="insertborderwidth ").grid(row=0, column=0)
Entry1 = tk.Entry(root , insertborderwidth = tk.RAISED , insertwidth=2).grid(row=0, column=1,padx=15 , pady=20)
root.mainloop()
and the error is:
Does this solve your issue? (Changed insertborderwidth
to a number and added relief ='raised'
)
Entry1 = tk.Entry(root , insertborderwidth = 8, relief ='raised', insertwidth=2).grid(row=0, column=1,padx=15 , pady=20)