I'm trying to use VSCode as my main IDE for Anaconda Custom Python 2.7.13 on MacOS High Sierra. I'm trying to make a file open dialogue box appear using PyQt5. In Spider the following works fine, but not in VS Code:
from PyQt5 import QtWidgets
files = QtWidgets.QFileDialog.getOpenFileNames()
The error I get in the VSC console is simply Not Available
whereas in the context of a larger program I get
E1101:Module 'PyQt5.QtWidgets' has no 'QFileDialog' member
.
I was wondering whether anyone had any idea where this issue is arising from?
Oli