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

File Dialog in Tkinter

100+
P: 440
Hi,

Is it possible to invoke a FileDialog in both UNIX and Windows OS?.As what we see when we do File->Open ( in MSWord)?

Thanks
PSB
May 15 '07 #1
Share this Question
Share on Google+
4 Replies


bartonc
Expert 5K+
P: 6,596
Hi,

Is it possible to invoke a FileDialog in both UNIX and Windows OS?.As what we see when we do File->Open ( in MSWord)?

Thanks
PSB
Yes. It's in lib-tk.FileDialog.py.
May 15 '07 #2

100+
P: 440
Yes. It's in lib-tk.FileDialog.py.
This File Dialog will not show the files with the extension mentioned.I would like to browse the specific file extension

Say *.txt or *.xls

How to customize this dialog for browsing the particular file extensions only?

Thanks
PSB
May 18 '07 #3

100+
P: 440
Is it possible to call Windows File Dialog.This options looks good for the user to Pick the file with Particular exetnsion.But this will not work in UNIX OS.

Is there any callbacks available to call the Windows File Dialog and UNIX support dialog?.

'C:\Python25\Lib\site-packages\win32\Demos\FileDialog.py' is tough for the user to browse the file

Thanks
PSB
May 18 '07 #4

bartonc
Expert 5K+
P: 6,596
Is it possible to call Windows File Dialog.This options looks good for the user to Pick the file with Particular exetnsion.But this will not work in UNIX OS.

Is there any callbacks available to call the Windows File Dialog and UNIX support dialog?.

'C:\Python25\Lib\site-packages\win32\Demos\FileDialog.py' is tough for the user to browse the file

Thanks
PSB
Don't use anything in win32\ for cross platform work. Tk will call the native file dialog box on whichever platform it is running on. lib-tk.filedialog is the one to use.
May 18 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.