5 import gfxprim
.core
as core
6 import gfxprim
.loaders
as loaders
7 import gfxprim
.backends
as backends
8 import gfxprim
.input as input
11 if len(sys
.argv
) != 2:
12 print("Takes an image as an argument")
16 img
= loaders
.Load(sys
.argv
[1])
19 bk
= backends
.BackendX11Init(None, 0, 0, img
.w
, img
.h
, sys
.argv
[1], 0)
21 img
.Blit(0, 0, bk
.context
, 0, 0, img
.w
, img
.h
)
30 if (ev
.type == input.EV_KEY
):
32 elif (ev
.type == input.EV_SYS
):
33 if (ev
.code
== input.EV_SYS_QUIT
):
36 if __name__
== '__main__':