adding icon
This commit is contained in:
parent
78aceadf5b
commit
bb746798a6
|
@ -13,10 +13,13 @@ win_bg_color = (102, 255, 255)
|
|||
|
||||
window = pygame.display.set_mode((win_width, win_height))
|
||||
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)
|
||||
|
||||
|
||||
|
||||
run = True
|
||||
while run:
|
||||
events = pygame.event.get()
|
||||
|
|
BIN
PyGame/practice/icon/dieicon.png
Normal file
BIN
PyGame/practice/icon/dieicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
Loading…
Reference in New Issue
Block a user