I have this script:
Multiply = Tk()
Multiply.geometry('500x700+700+200')
Multiply.title('SuperTrend Backtesting')
def TimesTable():
result11= print('Profit gained from the ST strategy by investing $100k : ',total_investment_ret)
result1 = Label(Multiply, text=result11, justify='center').grid(row=5, column=6)
return result1
button1=Button(Multiply, text='Run and close the window', command=TimesTable).grid(row=1,column=6)
label1=Label(Multiply,text=' ').grid(row=2,column=6)
QUIT=Button(Multiply,text='Quit', fg='Red', command=Multiply.destroy).grid(row=3,column=6)
label1=Label(Multiply,text=' ').grid(row=4,column=6)
result1=Label(Multiply, justify='center').grid(row=5, column=6)
label1=Label(Multiply,text=' ').grid(row=6,column=6)
Multiply.mainloop()
And for some reason I don't know, it doesn't do what it should do (print the terminal)
What do I have to do to print the terminal in the TK UI?