@@ -1823,7 +1823,7 @@ def any(self):
18231823 """
18241824 return bool (self .buttons_pressed )
18251825
1826- def check_buttons (self ,buttons = []):
1826+ def check_buttons (self , buttons = []):
18271827 """
18281828 Check if currently pressed buttons exactly match the given list.
18291829 """
@@ -1888,7 +1888,7 @@ def buttons_pressed(self):
18881888 fcntl .ioctl (self ._button_file (b ), self .EVIOCGKEY , self ._buffer_cache [b ])
18891889
18901890 pressed = []
1891- for k ,v in self ._buttons .items ():
1891+ for k , v in self ._buttons .items ():
18921892 buf = self ._buffer_cache [v ['name' ]]
18931893 bit = v ['value' ]
18941894 if not bool (buf [int (bit / 8 )] & 1 << bit % 8 ):
@@ -2407,7 +2407,7 @@ def clear(self):
24072407 """
24082408 Clears the screen
24092409 """
2410- self ._draw .rectangle (((0 ,0 ), self .shape ), fill = "white" )
2410+ self ._draw .rectangle (((0 , 0 ), self .shape ), fill = "white" )
24112411
24122412 def _color565 (self , r , g , b ):
24132413 """Convert red, green, blue components to a 16-bit 565 RGB value. Components
@@ -2416,7 +2416,7 @@ def _color565(self, r, g, b):
24162416 return (((r & 0xF8 ) << 8 ) | ((g & 0xFC ) << 3 ) | (b >> 3 ))
24172417
24182418 def _img_to_rgb565_bytes (self ):
2419- pixels = [self ._color565 (r ,g , b ) for (r ,g , b ) in self ._img .getdata ()]
2419+ pixels = [self ._color565 (r , g , b ) for (r , g , b ) in self ._img .getdata ()]
24202420 return pack ('H' * len (pixels ), * pixels )
24212421
24222422 def update (self ):
0 commit comments