Lightweight cross-platform way to prompt for a file

前端 未结 2 1148
难免孤独
难免孤独 2021-01-15 05:16

I found a very built-in and easy way to prompt a system-specific nice open file dialog:

import Tkinter
from tkFileDialog import askopenfilename
tk_root = Tki         


        
2条回答
  •  别那么骄傲
    2021-01-15 05:58

    If you're developing a pygame app, there's a project called Pygame Utilities which has cross-platform support for file dialogs, among many other things. It appears to be fairly lightweight.

    Doesn't look to be very well documented, though. If you download the package, run the setup.py file in the docs directory to generate the documentation.

提交回复
热议问题