adding icon

This commit is contained in:
Stephen Deaton 2024-06-16 15:40:13 -04:00
parent 78aceadf5b
commit bb746798a6
2 changed files with 4 additions and 1 deletions

View File

@ -13,10 +13,13 @@ win_bg_color = (102, 255, 255)
window = pygame.display.set_mode((win_width, win_height)) window = pygame.display.set_mode((win_width, win_height))
pygame.display.set_caption('Dice Roll') pygame.display.set_caption('Dice Roll')
icon = pygame.image.load(os.path.join("img", "PyGame\practice\icon\dieicon.png"))
icon.convert_alpha()
pygame.display.set_icon(icon)
window.fill(win_bg_color) window.fill(win_bg_color)
run = True run = True
while run: while run:
events = pygame.event.get() events = pygame.event.get()

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB