file = Root() path = file.fileDialog() print(“PATH = “, path)
file = Root() path = file.fileDialog() print("PATH = ", path)
Here is what the above code is Doing:
1. We create a new instance of the Root class.
2. We call the fileDialog method on the instance.
3. We print the path to the file that was selected.