This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sdl2 | |
import ctypes | |
def main(): | |
window = sdl2.SDL_CreateWindow('test'.encode('utf-8'), | |
sdl2.SDL_WINDOWPOS_UNDEFINED, | |
sdl2.SDL_WINDOWPOS_UNDEFINED, | |
800, 600, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def args_deco(deco): | |
''' Simplifies creation of decorators that have arguments. | |
Example Usage: | |
from functools import wraps | |
@args_deco | |
def logged(fn, enabled=False, label="NOTE: "): | |
if enabled: |