How do I pull the updated information from a tkinter form?
Peter Otten
__peter__ at web.de
Sun Aug 30 13:55:05 EDT 2020
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")
More information about the Python-list
mailing list