Mar-18-2020, 04:10 PM
(Mar-18-2020, 02:18 AM)joe_momma Wrote: I'm missing some modules to run your script but from your code it looks like theWell actually I found a solution to do that. The solution is I create a new window in the function to do that so that I can use this variable into the label that I Create here is the code
Quote:print(DATA)is the information you want to create labels with.
If you could post a snip it of it you might get a better answer. I would make the data into a list or dictionary and use a for loop to create labels. When you use a StringVar() it's for only one label and that label text is changing. https://effbot.org/tkinterbook/variable.htm
What is your data type?
print(type(DATA))
def get_name(): inputValue=Entry.get() ts=TimeSeries(key='-----------',output_format='pandas') root=tk.Toplevel() tk.Canvas() Label=tk.Label() photo = ImageTk.PhotoImage(Image.open("D:\\Profile\\Desktop\\Photos\\stockmrkt.jpg")) logo = tk.Label(root, image=photo) logo.pack() lower_frame=tk.Entry(root,bg="#80c1ff",bd=5) lower_frame.place(relx=0.5,rely=0.25,relwidth=0.75,relheight=0.6,anchor='n') label=tk.Label(lower_frame,text=DATA,font=('courier',10),anchor='nw',justify='left',bd=4) label.place(relwidth=1,relheight=1) tk.mainloop()