Skip to content

Commit 2e2c663

Browse files
[fix] port needs to be an integer.
remove pygame icon from windows adding PyInstaller file to .gitignore
1 parent ef89a7c commit 2e2c663

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ venv
77
# Server/port secrets.
88
*.env
99
!*.env.example
10+
11+
# Pyinstaller
12+
build
13+
dist
14+
*.zip
15+
*.spec

client/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def main():
2222

2323
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
2424

25-
client_socket.connect((ip, port))
25+
client_socket.connect((ip, int(port)))
2626
client_socket.setblocking(False)
2727

2828
app = App(Client(client_socket))

client/src/ui.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ def __init__(self, client):
1111
pygame.display.set_caption("PyChat v2.0")
1212

1313
self.screen = pygame.display.set_mode((1280, 720))
14+
icon = pygame.Surface((64, 64), pygame.SRCALPHA)
15+
pygame.display.set_icon(icon)
1416

1517
self.update_event = pygame.USEREVENT + 1
1618
pygame.time.set_timer(self.update_event, 1000)
1719

18-
self.font = pygame.font.Font("oxygen.ttf", 12)
20+
self.font = pygame.font.Font("assets/oxygen.ttf", 12)
1921

2022
self.message = ''
2123
self.history = []

0 commit comments

Comments
 (0)