469,328 Members | 1,282 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,328 developers. It's quick & easy.

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

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
2 2792
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

<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.

Similar topics

reply views Thread by David Stark | last post: by
2 posts views Thread by Jerry | last post: by
4 posts views Thread by Mike Tuller | last post: by
14 posts views Thread by Kenneth McDonald | last post: by
4 posts views Thread by dmsbox2000-list1 | last post: by
2 posts views Thread by Andrew Trevorrow | last post: by
3 posts views Thread by Thomas Ploch | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by listenups61195 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.