Which function is used for defining the size and position of a window in PyQt?

6. Which function is used for defining the size and position of a window in PyQt?

  1. setgeometry()
  2. setGeometry()
  3. getSetGeometry()
  4. set_Geometry()

Answer: B) setGeometry()

Explanation:

PyQt's method setGeometry() is used to define the size and position of the Window.

Syntax:
window.setGeometry(x, y, width, height)

Comments and Discussions!

Load comments ↻






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