'PySimpleGUI | Multiline output | Python 3.x

I have a simple GUI script, and one of the elements is a Multiline

Everything goes smoothly except when I want to output what I typed in the multiline to a variable.

column1 = sg.Column([ [sg.Multiline('Please open a file', font = fnt, size=(30,20), key = '-text-')] ])

print(values('-text-'))

then it gives me

TypeError: 'dict' object is not callable

To be more exact, I am making a super simple text editor, and I know how to get a variable written on a file, but getting the variable is my problem.

Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source