From 4f178917c2a1bf78a612454fd830b87d78dd1772 Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Fri, 20 Sep 2019 11:24:37 +0200 Subject: fix local import --- display/dpy_pygame.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'display/dpy_pygame.py') diff --git a/display/dpy_pygame.py b/display/dpy_pygame.py index 30d7359..498b5dc 100644 --- a/display/dpy_pygame.py +++ b/display/dpy_pygame.py @@ -3,11 +3,12 @@ ## pygame-based implementation of xshm ## ################################################ -import os +import os, sys import pygame from pygame.locals import * -from .modes import KeyPressed, KeyReleased +from display.modes import KeyPressed, KeyReleased +# print("dpy_pygame", file=sys.stderr ) class Display: musthidemouse = 0 @@ -70,6 +71,7 @@ class Display: del self.events_mouse[:-8] def pixmap(self, w, h, data, colorkey=-1): + print(f"pixmap type(data) = {type(data)}, data={data[:128]}", file=sys.stderr) img = pygame.image.fromstring(data, (w, h), "RGB") if colorkey >= 0: r = colorkey & 0xFF -- cgit v1.2.3