GUI consists one Run Button which should run the first program as many times user wants & display output in tkinter text.
My code(2nd .py file):
from tkinter import*
from tkinter import ttk
import Random Game
root = Tk()
root.title("Random Game 1.0")
quote = "Long \nRandom \nText \nGenerated \nBy \nRandom Function \nAnd \nControl Structures"
frame = Frame(root)
labelText = StringVar()
label = Label(frame, textvariable=labelText).pack()
button = Button(frame, text="Click to Run").pack()
labelText.set("Random Game 1.0")
Label(root, text ="")
T = Text(root)
frame.pack()
T.pack()
T.insert(END, quote)
root.mainloop()
I want Output of 1st program which is random every time in "tkinter text of another (2nd program) instead of quote lines mentioned in above code.