I my trying to retrieve a string variable for the selected path.
class ExampleApp(QtGui.QMainWindow, design.Ui_MainWindow):
def __init__(self):
super(self.__class__, self).__init__()
self.setupUi(self)
A = self.in_browse_button.clicked.connect(self.browser)
def browser(self):
global directory
directory = str(QFileDialog.getExistingDirectory())
self.input_edit.setText(directory)
return directory
The dialog open when I press the button but when I try to use A variable it's value is None. Any idea?