Answers for "open a dialog widow by a button pyqt5"

0

open file dialog on button click pyqt5

def open(self):
    path = QFileDialog.getOpenFileName(self, 'Open a file', '',
                                     'All Files (*.*)')
    if path != ('', ''):
		print(path[0])
Posted by: Guest on December-05-2020

Python Answers by Framework

Browse Popular Code Answers by Language