Since I have to get rid of my window title- and task bar, full screen mode would be appreciated.
edit:
I tried
while True:
# process mouse/keyboard events
for event in pygame.event.get():
if event.type == MOUSEBUTTONDOWN:
_grid.mouse_pressed()
elif event.type == KEYDOWN:
# toggle fullscreen:
if (event.key == K_f):
if pygame.display.get_surface().get_flags() & FULLSCREEN:
pygame.display.set_mode(canvas_size)
else:
pygame.display.set_mode(canvas_size, FULLSCREEN)
but this produces a black, ~indestructable~ screen ~I can only suffocate my computer to escape from~
Since I have to get rid of my window title- and task bar, full screen mode would be appreciated.
edit: I tried
but this produces a black, ~indestructable~ screen ~I can only suffocate my computer to escape from~