i have this variable outside of my function and when i try to modify it inside the function ther's just a new variable defined inside the function.
accessPath = ""
def AccessButton_Func():
text=filedialog.askopenfile().name
if not text == None:
accessPath = text
AccessLabel.configure(text=text)
my function is used in a tkinter button and there's no return for it.
i tried using a global variable but that does not work with other functions i have.