Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

open file dialog on button click pyqt5

def open(self):
    path = QFileDialog.getOpenFileName(self, 'Open a file', '',
                                     'All Files (*.*)')
    if path != ('', ''):
		print(path[0])
 
PREVIOUS NEXT
Tagged: #open #file #dialog #button #click
ADD COMMENT
Topic
Name
8+8 =