Home »
Python »
PyQt MCQs
Which is the correct import statement to import QtGui Module?
5. Which is the correct import statement to import QtGui Module?
- from PyQt4 import PyQtGui
- from PyQt4 import QtGui
- import PyQt4 from QtGui
- Both A and B
Answer: B) from PyQt4 import QtGui
Explanation:
The correct import statement to import QtGui Module in Python is:
from PyQt4 import QtGui