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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -