non-blocking getkey?
Terry Reedy
tjreedy at udel.edu
Wed Nov 18 12:55:33 EST 2015
On 11/18/2015 11:50 AM, Ulli Horlacher wrote:
> Ulli Horlacher <framstag at 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
More information about the Python-list
mailing list