summaryrefslogtreecommitdiff
path: root/display/dpy_windows.py
blob: c81c270407a9dc5d54fee1fca06e8ccf2cd78ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import sys
import wingame
from .modes import BaseDisplay
from io 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 []