Is there any way to do this?
Basically I have a file that I want a user to be able to edit via a GUI I built(all of which I can do easily). Part of this is a calculation in a function. That or being able to edit a .py file from another file would be fine as well, but it is hard to find anything on that because every search returns details about IDLE and such.
I also have no problem with just having the calculation only in the text file and being able to read that from the text file and then parse it to add the variables in, but not even sure how to do that easily either, with the calculations varying like so:
(abs(x) - abs(y) * dict['t']) * 18
((abs(y) * dict['t']) - abs(x)) * 20
etc for about 10 different variations