summaryrefslogtreecommitdiff
path: root/display/dpy_windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'display/dpy_windows.py')
-rwxr-xr-xdisplay/dpy_windows.py23
1 files changed, 23 insertions, 0 deletions
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 []