mirror of
https://github.com/abakh/nbsdgames
synced 2025-04-28 14:09:32 -04:00
24 lines
632 B
Python
Executable File
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 []
|