Get filename using filefialog.askfilename
John Gordon
gordon at panix.com
Tue May 7 16:37:26 EDT 2013
In <ab1feb45-0397-4411-bab1-898c95f57b05 at googlegroups.com> cheirasacan at gmail.com writes:
> print(file)
> the output is: <......name="file.doc"...mode=......encoding.......... >
> How can i get the second member of 'file'?
If you're using the interpreter, you can type this command:
>>> help(file)
And it will display documentation for using objects of that type.
You can also use this command:
>>> dir(file)
And it will display all the members and methods that the object provides.
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list