From c6ab27d6a3e1f162234a090f37ee8d82cef5866a Mon Sep 17 00:00:00 2001 From: Sara Kowalska Date: Mon, 4 May 2020 11:40:14 +0200 Subject: [PATCH] =?UTF-8?q?Poprawki=20koloru=20przycisk=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Restaurant/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Restaurant/main.py b/Restaurant/main.py index f924801..dd91d4c 100644 --- a/Restaurant/main.py +++ b/Restaurant/main.py @@ -537,7 +537,7 @@ def redrawWindow(surface): surface.blit(image, (puddles[i][0] * sizeBetween + 1, puddles[i][1] * sizeBetween + 1)) drawGrid(width, rows, surface) - button("Rozpoznawanie talerzy", 0, width + 1, 198, 48, beige, white) + button("Rozpoznawanie talerzy", 0, width + 1, 198, 48, light_beige, white) pygame.display.update() @@ -581,9 +581,10 @@ def makeImgClassificator(model): metrics=['accuracy']) def main(): - global width, rows, bot, beige, white, black, sizeBetween, tables, kitchen, cantwalk, puddles, window, clock, \ + global width, rows, bot, light_beige, beige, white, black, sizeBetween, tables, kitchen, cantwalk, puddles, window, clock, \ img_classify # skróty do kolorów + light_beige = (255, 240, 205) beige = (255, 205, 178) white = (255, 255, 255) black = (0, 0, 0) @@ -632,7 +633,7 @@ def main(): if event.type == pygame.QUIT: pygame.quit() quit() - button("Rozpoznawanie talerzy", 0, width + 1, 198, 48, beige, white, classify) + button("Rozpoznawanie talerzy", 0, width + 1, 198, 48, light_beige, white, classify) redrawWindow(window) #bot.moveRandomly() #goal = (1, 3)