blob: b01dfcfee3c6361075f8ba297575dd1a82caaced (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import sys
import wingame
from modes import BaseDisplay
from cStringIO import StringIO
class Display(BaseDisplay):
def __init__(self, width, height, title):
self.xdpy = xdpy = wingame.Display(width, height)
xdpy.settitle(title)
self.pixmap = xdpy.pixmap
self.getppm = xdpy.getppm
self.putppm = xdpy.putppm
self.close = xdpy.close
self.clear = xdpy.clear
self.flip = xdpy.flip
self.keyevents = xdpy.keyevents
self.mouseevents = xdpy.mouseevents
self.pointermotion = xdpy.pointermotion
def selectlist(self):
return []
|