Home »
MCQs »
Pygame MCQs
Which is the correct statement to set the position of a widget 'dispWin' to position x and y?
14. 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
The correct answer is: 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)