Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

            def wrapper(*args):
        if not screen:
            raise GaspException("No graphics window initialized. Please call begin_graphics().")
        return func(*args)
        


src/g/a/gasp-0.3.3/gasp/api.py   gasp(Download)
    if event_type == 'key_pressed' or event_type == 'mouse_clicked' or event_type == "next_tick":
        if event_type == "key_pressed":
            return backend.update_when(event_type)
        else: backend.update_when(event_type)
    else: raise backend.GaspException("update_when must take of 'key_pressed', 'mouse_clicked', or 'next_tick'")