By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,660 Members | 1,100 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,660 IT Pros & Developers. It's quick & easy.

How to use the OS's native file selector in Tkinter

P: n/a
Hi,

I would like to use the native file selector of the "host OS" for the "Open
File" function of my Python/Tkinter app. Could anyone tell me how to do
this?
My primary target platform is Windows. So a Windows-only solution would be
ok (IIRC Linux doesn't even have a "native file selector").

copx
Sep 5 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
tkFileDialog.Open is a wrapper around tk's tk_getOpenFile.

tk_getOpenFile uses the native dialog on Windows, via the GetOpenFileName()
win32 API call, at least in Tk versions 8.2 and newer.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDHGBWJd01MZaTXX0RAl+/AJ45KwyzhjSml7tMOa2sK80++rmlYACeOYdM
bTjh0Bly9ua7cpQFhZR1q1A=
=8WQe
-----END PGP SIGNATURE-----

Sep 5 '05 #2

P: n/a

<je****@unpythonic.net> schrieb im Newsbeitrag
news:ma*************************************@pytho n.org...

Thank you!
copx
Sep 5 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.