Skip to content

Commit 01f7d0b

Browse files
committed
adding an icon to the launcher
1 parent 729de31 commit 01f7d0b

File tree

5 files changed

+43
-2
lines changed

5 files changed

+43
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ SearchAlgoViz.spec
2424
# Project artifacts
2525
# Version information file
2626
version_info.txt
27+
description.txt

SearchAlgoViz-v1.0.0.spec

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
4+
a = Analysis(
5+
['main.py'],
6+
pathex=[],
7+
binaries=[],
8+
datas=[('assets', 'assets')],
9+
hiddenimports=[],
10+
hookspath=[],
11+
hooksconfig={},
12+
runtime_hooks=[],
13+
excludes=[],
14+
noarchive=False,
15+
optimize=0,
16+
)
17+
pyz = PYZ(a.pure)
18+
19+
exe = EXE(
20+
pyz,
21+
a.scripts,
22+
a.binaries,
23+
a.datas,
24+
[],
25+
name='SearchAlgoViz-v1.0.0',
26+
debug=False,
27+
bootloader_ignore_signals=False,
28+
strip=False,
29+
upx=True,
30+
upx_exclude=[],
31+
runtime_tmpdir=None,
32+
console=False,
33+
disable_windowed_traceback=False,
34+
argv_emulation=False,
35+
target_arch=None,
36+
codesign_identity=None,
37+
entitlements_file=None,
38+
version='version.txt',
39+
icon=['assets\\Searching.ico'],
40+
)
File renamed without changes.
File renamed without changes.

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def resource_path(relative_path):
3030
return os.path.join(base_path, relative_path)
3131

3232

33-
icon_path = resource_path("Searching.ico")
33+
icon_path = resource_path("assets/Searching.ico")
3434

3535

3636
class TreeVisualizer:
@@ -367,7 +367,7 @@ def draw_edges(self):
367367
# Draw the graph for A* algorithm
368368
def draw_graph(self):
369369
# Load the background image
370-
image_path = "map_image.jpg"
370+
image_path = "assets/map_image.jpg"
371371
image = Image.open(image_path)
372372
self.background_image = ImageTk.PhotoImage(image)
373373

0 commit comments

Comments
 (0)