def openFileNameDialog(self):
    options = QFileDialog.Options()
    options |= QFileDialog.DontUseNativeDialog
    (fileName, _) = QFileDialog.getOpenFileName(self, 'QFileDialog.getOpenFileName()', '', 'All Files (*);;Python Files (*.py)', options=options)
    if fileName:
        print(fileName)
def openFileNameDialog(self):
    options = QFileDialog.Options()
    options |= QFileDialog.DontUseNativeDialog
    (fileName, _) = QFileDialog.getOpenFileName(self, 'QFileDialog.getOpenFileName()', , 'All Files (*);;Python Files (*.py)', options=options)
    if fileName:
        print(fileName)