Answers for "open file dialog on button click pyqt5"

0

pyqt open file dialog

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

Code answers related to "open file dialog on button click pyqt5"

Python Answers by Framework

Browse Popular Code Answers by Language