On 11/18/2015 11:50 AM, Ulli Horlacher wrote:
Ulli Horlacher <frams...@rus.uni-stuttgart.de> wrote:

         from Tkinter import Tk
         from tkFileDialog import askopenfilename

         Tk().withdraw()
         file = askopenfilename()

I found another glitch:

After termination of askopenfilename() the window focus is not returned to
the calling window (xterm on Linux, cmd on Windows). I have to click it
again, to regain the focus and continue typing. Is there a workaround?

What happens with

root = Tk()
root.withdraw()
fiel = ...
root.destroy()

Focus cannot stay with destroyed window.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to