I have this function here.

```
def choose_file():
    file = askopenfile(mode ='r', filetypes =[('xodr Files', '*.xodr')])
    if file:
        res = "selected:", file
    else:
        res = "file not selected"
    return(res)

```

I have this button to open the dialog and choose a file

```
e3=Button (scalF, text='Wählen Sie ein Dokument',font=('Bahnschrift SemiLight',12),command=choose_file, bg='blue')
e3.pack(side='top')

```

after choosing a file and closing the dialog I want to display the value of the variable defined res in the `choose_file()` in the label below

```
chosenFile = Label(scalF,text="I want to write here",font=('Bahnschrift SemiLight', 10))
chosenFile.pack(side='top')

```

can you explain how to read the variable `res`from the global scope?