Answer the question
In order to leave comments, you need to log in
How to call explorer and give file path through it in python?
In many programs for selecting files, the explorer opens and the user selects a file, how to implement this in python3?
Answer the question
In order to leave comments, you need to log in
самый-самый простой вариант
# -*- coding: utf-8 -*-
import easygui
input_file = easygui.fileopenbox(filetypes=["*.docx"])
Depending on how you call the dialog box.
If you call it using the Windows API, then everything is described in MSDN.
If you create this window using some third-party library, such as Qt, then you need to look at the documentation for this library.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question