From 2c41e377ab7257f879840abca9305fd25c274100 Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Sat, 23 May 2020 10:05:51 +0200 Subject: more string to bytearray conversion --- display/modes.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'display/modes.py') diff --git a/display/modes.py b/display/modes.py index c43638d..caadfcb 100644 --- a/display/modes.py +++ b/display/modes.py @@ -13,8 +13,8 @@ class BaseDisplay: def taskbar(self, s): (x, y, w, h) = s if self.__taskbkgnd is None: - pixel = "\x00\x00\x80" - hole = "\x01\x01\x01" + pixel = b"\x00\x00\x80" + hole = b"\x01\x01\x01" self.__taskbkgnd = self.pixmap(32, 32, ((pixel+hole)*16 + (hole+pixel)*16) * 16, 0x010101) for j in range(y, y+h, 32): @@ -105,12 +105,12 @@ class SoundMode(Mode): def graphicmodeslist(): return [ - GraphicMode('X', 'XWindow (Linux/Unix)', - ['--shm=yes use the Shared Memory extension (default)', - '--shm=no disable it (for remote connections or old X servers)', - ], - {'shm': 'yes'}), - GraphicMode('windows', 'MS Windows', []), +# GraphicMode('X', 'XWindow (Linux/Unix)', +# ['--shm=yes use the Shared Memory extension (default)', +# '--shm=no disable it (for remote connections or old X servers)', +# ], +# {'shm': 'yes'}), +# GraphicMode('windows', 'MS Windows', []), GraphicMode('pygame', 'PyGame library (all platforms)', ['--fullscreen=yes go full screen (Esc key to exit)', '--transparency=yes slightly transparent bubbles (default)', @@ -121,10 +121,10 @@ def graphicmodeslist(): {'transparency': 'yes', 'fullscreen': 'no', 'zoom': '100', 'smooth': 'yes', 'smoothfast': 'no'}, url='http://www.pygame.org'), - GraphicMode('gtk', 'PyGTK (Gnome)', - ['--zoom=xxx% scale image by xxx %'], - {'zoom': '100'}, - url='http://www.pygtk.org/'), +# GraphicMode('gtk', 'PyGTK (Gnome)', +# ['--zoom=xxx% scale image by xxx %'], +# {'zoom': '100'}, +# url='http://www.pygtk.org/'), ] def soundmodeslist(): -- cgit v1.2.3