tkinter call backs
Fredrik Lundh
fredrik at pythonware.com
Mon Jul 19 13:08:32 EDT 1999
Gordon Williams <g_will at cyberus.ca> wrote:
> I have a simple problem that I cant find the solution. I have a menu item
> to open a file which has a command "openfile". I would like to activate
> "tkFileDialog.askopenfilename" to get the name of the file. This requires
> "parent=root" or something like that for the position of the message box.
>
> How do I pass "root" into openfile?
after which he promptly answered his own
question:
> fileName=tkFileDialog.askopenfilename(parent=root, title="Open")
what am I missing here?
</F>
More information about the Python-list
mailing list