codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tkinter global variable


On Fri, 13 Nov 2020 15:41:20 +0000, Stefan Ram wrote:

> ChalaoAdda <chalao.adda at gmail.com> writes:
>>I am trying to read a file from askopenfilename outside the function. I
>>am getting blank file name. What am I doing wrong? Here is my code.
> 
>   It is possible that you try to read from "pic" before "on_openfile"
>   ever was executed.

I didn't get you. I click on the menu item "Open" and then from the 
filedialog select a file. And then outside that function I am trying to 
read and print the file.