diff options
author | Diego Roversi <diegor@tiscali.it> | 2019-09-20 11:24:37 +0200 |
---|---|---|
committer | Diego Roversi <diegor@tiscali.it> | 2019-09-20 11:24:37 +0200 |
commit | 4f178917c2a1bf78a612454fd830b87d78dd1772 (patch) | |
tree | 98eea238e8345a0ed797be0a52d8048644b8d306 | |
parent | 038cf998c1aecd855e4b881d8159be64e0000773 (diff) |
fix local import
-rw-r--r-- | display/dpy_pygame.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 |