|
20 | 20 | from Xlib.protocol import request, rq |
21 | 21 |
|
22 | 22 | # Other X resource objects |
23 | | -import resource |
24 | | -import colormap |
25 | | -import cursor |
26 | | -import fontable |
| 23 | +from . import resource |
| 24 | +from . import colormap |
| 25 | +from . import cursor |
| 26 | +from . import fontable |
27 | 27 |
|
28 | 28 | # Inter-client communication conventions |
29 | | -import icccm |
| 29 | +from . import icccm |
30 | 30 |
|
31 | 31 | class Drawable(resource.Resource): |
32 | 32 | __drawable__ = resource.Resource.__resource__ |
@@ -229,7 +229,7 @@ def put_pil_image(self, gc, x, y, image, onerror = None): |
229 | 229 | unit = self.display.info.bitmap_format_scanline_unit |
230 | 230 | stride = roundup(width * unit, pad) >> 3 |
231 | 231 | else: |
232 | | - raise ValueError, 'Unknown data format' |
| 232 | + raise ValueError('Unknown data format') |
233 | 233 |
|
234 | 234 | maxlen = (self.display.info.max_request_length << 2) \ |
235 | 235 | - request.PutImage._request.static_size |
@@ -798,8 +798,8 @@ def free(self, onerror = None): |
798 | 798 | self.display.free_resource_id(self.id) |
799 | 799 |
|
800 | 800 | def create_cursor(self, mask, |
801 | | - (fore_red, fore_green, fore_blue), |
802 | | - (back_red, back_green, back_blue), |
| 801 | + fore_red, fore_green, fore_blue, |
| 802 | + back_red, back_green, back_blue, |
803 | 803 | x, y): |
804 | 804 | cid = self.display.allocate_resource_id() |
805 | 805 | request.CreateCursor(display = self.display, |
|
0 commit comments