From 65764da1f78e4662bfe2c257aa06fb4854bdc379 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Thu, 28 May 2015 23:10:42 +0200 Subject: [PATCH] Replaced mousepointer by transparent xbm file --- photobooth.py | 1 + transparent.msk | 4 ++++ transparent.xbm | 6 ++++++ 3 files changed, 11 insertions(+) create mode 100644 transparent.msk create mode 100644 transparent.xbm diff --git a/photobooth.py b/photobooth.py index c424e06..5412cf5 100755 --- a/photobooth.py +++ b/photobooth.py @@ -78,6 +78,7 @@ class GUI_PyGame: # Window name pygame.display.set_caption(name) # Hide mouse cursor + pygame.mouse.set_cursor(*pygame.cursors.load_xbm('transparent.xbm','transparent.msk')) #pygame.mouse.set_visible(False) # Store screen and size self.size = size diff --git a/transparent.msk b/transparent.msk new file mode 100644 index 0000000..d893792 --- /dev/null +++ b/transparent.msk @@ -0,0 +1,4 @@ +#define transparent_width 8 +#define transparent_height 8 +static unsigned char transparent_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; \ No newline at end of file diff --git a/transparent.xbm b/transparent.xbm new file mode 100644 index 0000000..94d7d29 --- /dev/null +++ b/transparent.xbm @@ -0,0 +1,6 @@ +#define transparent_width 8 +#define transparent_height 8 +#define transparent_x_hot 0 +#define transparent_y_hot 0 +static unsigned char transparent_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; \ No newline at end of file