Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
importfrom pygame as p
p.init();s=p.displayimport*;s=display.set_mode((1,1)9,p.FULLSCREEN9);s.fill((0,0,0));p.display.flip(-1<<31);p.mouse;mouse.set_visible(0)
while 1:
for e in p.event.get():
if e.type==p.KEYDOWNtype==2:p.quit()
I could probably looseThanks to some in detecting the input, I'll look into ittips from ace.
Python / Pygame 199
import pygame as p
p.init();s=p.display.set_mode((1,1),p.FULLSCREEN);s.fill((0,0,0));p.display.flip();p.mouse.set_visible(0)
while 1:
for e in p.event.get():
if e.type==p.KEYDOWN:p.quit()
I could probably loose some in detecting the input, I'll look into it.
Python / Pygame 199 127
from pygame import*;s=display.set_mode((9,9),-1<<31);mouse.set_visible(0)
while 1:
for e in event.get():
if e.type==2:quit()