Home »
Python »
PyQt MCQs
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?
- setgeometry()
- setGeometry()
- getSetGeometry()
- 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)