13-09-2019, 10:52 AM
Hola, al editar el código de más abajo en Visual Studio Code o Geany, no logro corregir el siguiente error:
No name 'QApplication' in module 'PyQt5.QtWidgets' pylint(no-name-in-module)
No name 'QWidget' in module 'PyQt5.QtWidgets' pylint(no-name-in-module)
Tampoco así:
No name 'QApplication' in module 'PyQt5' pylint(no-name-in-module)
No name 'QWidget' in module 'PyQt5' pylint(no-name-in-module)
Plataforma:
Win 10, 64 bits.
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20)
Path C:\Python37, incluso agregado a la variable de entorno del SO
C:\>pip list
Package Version
----------------- ----------
astroid 2.2.5
Click 7.0
colorama 0.4.1
isort 4.3.21
lazy-object-proxy 1.4.2
mccabe 0.6.1
pip 19.2.3
pylint 2.3.1
PyQt5 5.13.0
PyQt5-sip 4.19.18
pyqt5-tools 5.13.0.1.5
python-dotenv 0.10.3
setuptools 40.8.0
six 1.12.0
typed-ast 1.4.0
wrapt 1.11.2
He probado reinstalando todo y aún así el inconveniente continúa...
Gracias !!!
CODIGO
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
ZetCode PyQt5 tutorial
In this example, we create a simple
window in PyQt5.
Author: Jan Bodnar
Website: zetcode.com
Last edited: August 2017
"""
import sys
from PyQt5.QtWidgets import QApplication, QWidget
if __name__ == '__main__':
app = QApplication(sys.argv)
w = QWidget()
w.resize(250, 150)
w.move(300, 300)
w.setWindowTitle('Simple')
w.show()
sys.exit(app.exec_())
No name 'QApplication' in module 'PyQt5.QtWidgets' pylint(no-name-in-module)
No name 'QWidget' in module 'PyQt5.QtWidgets' pylint(no-name-in-module)
Tampoco así:
No name 'QApplication' in module 'PyQt5' pylint(no-name-in-module)
No name 'QWidget' in module 'PyQt5' pylint(no-name-in-module)
Plataforma:
Win 10, 64 bits.
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20)
Path C:\Python37, incluso agregado a la variable de entorno del SO
C:\>pip list
Package Version
----------------- ----------
astroid 2.2.5
Click 7.0
colorama 0.4.1
isort 4.3.21
lazy-object-proxy 1.4.2
mccabe 0.6.1
pip 19.2.3
pylint 2.3.1
PyQt5 5.13.0
PyQt5-sip 4.19.18
pyqt5-tools 5.13.0.1.5
python-dotenv 0.10.3
setuptools 40.8.0
six 1.12.0
typed-ast 1.4.0
wrapt 1.11.2
He probado reinstalando todo y aún así el inconveniente continúa...
Gracias !!!
CODIGO
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
ZetCode PyQt5 tutorial
In this example, we create a simple
window in PyQt5.
Author: Jan Bodnar
Website: zetcode.com
Last edited: August 2017
"""
import sys
from PyQt5.QtWidgets import QApplication, QWidget
if __name__ == '__main__':
app = QApplication(sys.argv)
w = QWidget()
w.resize(250, 150)
w.move(300, 300)
w.setWindowTitle('Simple')
w.show()
sys.exit(app.exec_())