Add files via upload
This commit is contained in:
parent
abef24e1aa
commit
815a7bea90
26 changed files with 1380 additions and 91 deletions
16
build/lib/pygwin/_pg.py
Normal file
16
build/lib/pygwin/_pg.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from contextlib import contextmanager as _cm
|
||||
import os as _os
|
||||
import sys as _sys
|
||||
|
||||
@_cm
|
||||
def _suppress_stdout():
|
||||
with open(_os.devnull, "w") as devnull:
|
||||
old_stdout = _sys.stdout
|
||||
_sys.stdout = devnull
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
_sys.stdout = old_stdout
|
||||
with _suppress_stdout():
|
||||
import pygame as pg
|
||||
pg.init()
|
Loading…
Add table
Add a link
Reference in a new issue