Please help me.
In the code below, text box and other labels got placed before execution of the functions forcedefiner()
and resultantCalc()
:
def Resultant():
L = tk.Label(w,text="Enter the number of forces :",fg="black",font="none 20")
L.place(x=150,y=200)
enter = tk.Entry(font="none 20")
enter.place(x=500,y=200,width=100)
def submit():
n=int(enter.get())
enter.destroy()
L.destroy()
SB.destroy()
F=forceDefiner(n)
R=resultantCalc(F,n)
#here is the issue
UB.place(x=300,y=400,width=200,height=75)
L1.place(x=150,y=50)
RB.place(x=300,y=200,width=200,height=75)
EB.place(x=300,y=300,width=200,height=75)
Output.delete(0.0,tk.END)
Output.insert(tk.END,"Magnitude of Resultant = {} \nAngle of the Resultant = {}".format(R.f,R.a))
SB = tk.Button(w,text="SUBMIT",bg="blue",fg="white",font="none 18",command= submit )
SB.place(x=300,y=300,width=100)