I have several function writen, and when i want to call it, i get problem like (something in first function) is not defined
def func1():
def func2():
def func3():
main()
print("something")
def func1():
def func2():
def func3():
print("something")
if __name__ == '__main__':
main()
func1: reading file and give him variables ( reading mode)
func2: new inputs
func3: opening file for writing, write old variable from func1 and write new inputs from fun2.
Problem is variable (from func1) is not defined.
It works until need to write new inputs and old variable. File are cleared after last inputs popup.
NameError: name 'oldNamestaj' is not defined
oldNamestaj
is that variable in func1.