Home »
Python »
PyQt MCQs
Which is the correct statement to set the position of a widget 'dispWin' to position x and y?
15. Which is the correct statement to set the position of a widget 'dispWin' to position x and y?
- dispWin.move(x, y)
- dispWin.windowMove(x, y)
- dispWin.setPosition(x, y)
- dispWin.position(x, y)
Answer: A) dispWin.move(x, y)
Explanation:
The correct code statement to set the position of a widget 'dispWin' to position x and y is:
dispWin.move(x, y)