OK, I was closer than I thought. Two weeks ago, the concept of tkinter and these forms were totally new to me as well as, about two days ago, python list was totally new too. I somehow thought that "window.mainloop()" was supposed to be the last entry in the function, silly me... I did not think of returning the list.
Thank you, now it is back for another 30 hours of continuous programming... (: Steve Footnote: "What rhymes with orange?" "No it doesn't.." -----Original Message----- From: Python-list <python-list-bounces+gronicus=sga.ni...@python.org> On Behalf Of Peter Otten Sent: Sunday, August 30, 2020 1:55 PM To: python-list@python.org Subject: Re: How do I pull the updated information from a tkinter form? Steve wrote: > #What I cannot seem to do is to pull the adjusted #information from > the form into variables, or a #list/array, so that can be used for the > update to the file. The updated data is in the StringVar-s, which, fortunately, you have available in a list ;) So: > def EditDataByForm(): [...] > window.mainloop() return [spec.get() for spec in New_Specs] print(EditDataByForm()) > print ("Done") -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list