Which is the correct import statement to import QtGui Module?

5. Which is the correct import statement to import QtGui Module?

  1. from PyQt4 import PyQtGui
  2. from PyQt4 import QtGui
  3. import PyQt4 from QtGui
  4. 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

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.