nbsdgames/display/dpy_windows.py.bak
2022-02-03 13:46:22 +03:30

24 lines
632 B
Python
Executable File

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 []