What is the meaning of , _ in the following Pyhyhon code?
file_name, _ = QFileDialog.getSaveFileName(self, 'Save File',
"","All Files (*);;Text Files (*.txt)")
What is the meaning of , _ in the following Pyhyhon code?
file_name, _ = QFileDialog.getSaveFileName(self, 'Save File',
"","All Files (*);;Text Files (*.txt)")
_
is a name for a variable like anything else, but typically used to indicate that it won't be used. Think of it as file_name, some_useless_variable = ...