×

Multiple-Choice Questions

Which method is used to set the pygame window's title?

3. Which method is used to set the pygame window's title?

  1. display.set_title()
  2. display.title()
  3. display.setTitle()
  4. 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…")

Comments and Discussions!

Load comments ↻






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