Python How Do I Check File Name Opened Using Tkinter When Name

Python How Do I Check File Name Opened Using Tkinter When Name