A
A
Alexander Osherov2018-06-07 18:01:10
Python
Alexander Osherov, 2018-06-07 18:01:10

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

3 answer(s)
Владимир, 2018-06-07
@Alexandr2001

самый-самый простой вариант

# -*- coding: utf-8 -*-
import easygui
input_file = easygui.fileopenbox(filetypes=["*.docx"])

W
Web Dentist, 2018-06-07
@kgb_zor

Читайте доки по PyQt , Kivy и т.д.

АртемЪ, 2018-06-07
@Jump Куратор тега Windows

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 question

Ask a Question

731 491 924 answers to any question