1

So I want to make an app in turtle python. I want the screen to be full screen. So how do I do that?

Here is my code:

import turtle

wn = turtle.Screen()
wn.title("Example Window")
wn.setup(width=600, height=600)

wn.mainloop()

How do I make a full screen?

Skcoder
  • 299
  • 1
  • 9
  • 1
    Check this post: https://stackoverflow.com/questions/34687998/turtle-screen-fullscreen-on-program-startup – Mike67 Sep 12 '20 at 02:30
  • Does this answer your question? [Turtle.Screen() Fullscreen on Program Startup](https://stackoverflow.com/questions/34687998/turtle-screen-fullscreen-on-program-startup) – ggorlen Feb 28 '23 at 19:03

1 Answers1

1

Here is how:

import turtle

wn = turtle.Screen()
wn.title("Example Window")
wn.setup(1.0, 1.0)

wn.mainloop()

Among the setup() parameters, if either width and height is an integer, that parameter will evaluated in pixels, if a float, a percentage of the screen. The default size is 50% of screen.

More information at the documentation: https://docs.python.org/3.3/library/turtle.html?highlight=turtle#turtle.setup

Red
  • 26,798
  • 7
  • 36
  • 58