non-blocking getkey?
Christian Gollwitzer
auriocus at gmx.de
Wed Nov 18 06:17:07 EST 2015
Am 18.11.15 um 12:01 schrieb Ulli Horlacher:
> Ulli Horlacher <framstag at rus.uni-stuttgart.de> wrote:
>
>> it is too complicated to rewrite my application from CLI to GUI.
>> But... is there a windows program with which one can select files and the
>> result is written to STDOUT?
>
> Found it:
>
> from Tkinter import Tk
> from tkFileDialog import askopenfilename
>
> Tk().withdraw()
> file = askopenfilename()
>
>
> Hey, easy! :-)
>
Welcome to GUI programming ;) Do you still have other data to input?
There are nice tutorials at http://tkdocs.com and for simple input like
a single number or a line of text, there is a module simpledialog
Christian
More information about the Python-list
mailing list