Python - Pyqt4 (webkit) How To Set Value Of Input(type=“file” Multiple=“”)?
I'm trying to upload a file using QWebPage module of (WebKIt) like this.
Solution 1:
Answer :
...
def extension(self, extension, option, output):
if (extension == self.ChooseMultipleFilesExtension):
if self.overrideUpload is None:
return super(WebPage, self).extension(self, extension, option, output)
file_upl = self.overrideUpload
self.overrideUpload = None
output.fileNames = QStringList([file_upl])
return True
return False
...
Post a Comment for "Python - Pyqt4 (webkit) How To Set Value Of Input(type=“file” Multiple=“”)?"