Skip to content

Commit b00c637

Browse files
now having an icon
1 parent 81840ab commit b00c637

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# 基于pygame的图形化CAD编辑器
22
# made by Gaoxuan
33

4-
import pygame, sys, time
4+
import pygame, sys
55
from pygame.locals import *
66

7+
78
mainwindow = pygame.display.set_mode((1600, 900), pygame.RESIZABLE, 32)
89
pygame.display.set_caption('PyCAD')
9-
# icon = pygame.image.load('./img/icon.png')
10-
# pygame.display.set_icon(icon)
10+
icon = pygame.image.load('./resources/icon.png')
11+
pygame.display.set_icon(icon)
1112

1213
WHITE = (255, 255, 255)
1314
BLACK = (0, 0, 0)

resources/icon.png

13.2 KB
Loading

0 commit comments

Comments
 (0)