Module rpps.viz.dialog

Dialog wrappers

Functions

def get_file(title: str = '', filetypes=None)
Expand source code
def get_file(title: str="", filetypes=None):
    """Prompts for file selection"""
    root = Tk()
    root.withdraw()
    if filetypes is None:
        return filedialog.askopenfilename(
            title=title,
        )
    return filedialog.askopenfilename(
        title=title,
        filetypes=filetypes
    )

Prompts for file selection