Home »
MCQs »
Pygame MCQs
Which method is used to set the pygame window's title?
3. Which method is used to set the pygame window's title?
- display.set_title()
- display.title()
- display.setTitle()
- display.set_caption()
Answer
The correct answer is: D) display.set_caption()
Explanation
The display.set_caption()
method is used to set the caption/title of a pygame window. Consider the below syntax in which we are setting captions to a pygame window.
pygame.display.set_caption("Hi, There…")