Yippi, i managed to get a popup by just saying:
def OpenFile(self):
def OpenFile(self):
QFileDialog.getOpenFileName()
To copy to clipboard, switch view to plain text mode
But now im having trouble with selecting the file. When the user has selected a file and clicks open, i want the file path including its name to be printed in a lineEdit_box.
I tried using:
datafile = fileSelected() OR datafile=selectedFile()
self.lE_file.setText(datafile)
datafile = fileSelected() OR datafile=selectedFile()
self.lE_file.setText(datafile)
To copy to clipboard, switch view to plain text mode
But this didnt work. Does anybody have any ideas?
NameError: global name 'selectedFile' is not defined
Thanks!
Bookmarks