From 1d9925c287b318ec21343e2682b51ab6a36ae8db Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Sun, 8 Sep 2019 18:12:27 +0200 Subject: initial commit from cvs 1.6.2 --- display/dpy_windows.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 display/dpy_windows.py (limited to 'display/dpy_windows.py') diff --git a/display/dpy_windows.py b/display/dpy_windows.py new file mode 100755 index 0000000..b01dfcf --- /dev/null +++ b/display/dpy_windows.py @@ -0,0 +1,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 [] -- cgit v1.2.3