quarree100 / qScope_frontend

Code for the projection of Q-Scope/CityScope@QUARREE100
0 stars 0 forks source link

pygame fullscreen #6

Closed dunland closed 3 years ago

dunland commented 3 years ago

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~

dunland commented 3 years ago

using NOFRAME instead: pygame.display.set_mode(canvas_size, NOFRAME)