#writing introduction text
mn=tk.Label(window,text="WELCOME TO \n AAROGYA SETU \n SELF EXAMINATION FRONT",font=("Bookman old style",30,'bold','italic')).pack()
#linking sign up form
sig=tk.Label(window,text="click button to sign up",font=("Bookman old style",20,"bold")).pack()
Error message:
'Nonetype' has no attribute .grid()
I am unable to position my label
(that I created using Tkinter
) in my program. it doesn't take .grid()
or .place()
either.
What can be the possible reasons? my code execution otherwise is perfect.
.grid()
in your code - so using this code you could get this error. Always show code which generates error. And always put full error message (starting at word "Traceback") in question (not comment) as text (not screenshot, not link to external portal). There are other useful information.