Am 18.11.15 um 12:01 schrieb Ulli Horlacher:
Ulli Horlacher <frams...@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
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to