python - Lightweight cross-platform way to prompt for a file -


i found built-in , easy way prompt system-specific nice open file dialog:

import tkinter tkfiledialog import askopenfilename tk_root = tkinter.tk() tk_root.withdraw()  result = askopenfilename(     filetypes=[("foos", "*.png")], ) 

however, way heavy dependency in terms of size. i'm packaging app py2exe , app 7 megabytes bigger having include tkinter. surely there must simpler way prompt native file dialog works on windows, mac, , linux?

if you're developing pygame app, there's project called pygame utilities has cross-platform support file dialogs, among many other things. appears lightweight.

doesn't documented, though. if download package, run setup.py file in docs directory generate documentation.


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -