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