W
W
wolf-98302015-05-03 16:50:26
Python
wolf-9830, 2015-05-03 16:50:26

Why does not see PyQt4?

I run the following code:

try:
  from PyQt4 import QtCore,QtGui
except ImportError:
  print("PyQt4 error")

As a result of execution writes that PyQt4 error. I installed PyQt4, but it still does not see it, why and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Defman21, 2015-05-03
@Defman21

First: remove the try/except to get a normal error.
Secondly: throw this error here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question