non-blocking getkey?

Ulli Horlacher framstag at rus.uni-stuttgart.de
Wed Nov 18 06:01:59 EST 2015


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! :-)

-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum IZUS/TIK         E-Mail: horlacher at tik.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/



More information about the Python-list mailing list