Skip to content

Commit 5f54e12

Browse files
committed
Pysweeper version 0.3
1 parent 0d96c65 commit 5f54e12

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

icon.ico

11.4 KB
Binary file not shown.

nuitka.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
python -m nuitka --clang --onefile --include-data-file=../pysweeper/modules/pygame/libmpg123-0.dll=libmpg123-0.dll --include-data-dir=../pysweeper/data=data --include-data-dir=../pysweeper/textures=textures --include-data-dir=../pysweeper/fonts=fonts --include-data-dir=../pysweeper/sounds=sounds --windows-icon-from-ico=../pysweeper/textures/bomb.png --windows-company-name=chubercik --windows-product-name=pysweeper --windows-file-version=0.3 --windows-product-version=0.3 --windows-file-description="a Minesweeper clone written in Python" --windows-disable-console main.py -o pysweeper.exe
1+
python -m nuitka --clang --onefile --include-data-file=../pysweeper/modules/pygame/libmpg123-0.dll=libmpg123-0.dll --include-data-dir=../pysweeper/data=data --include-data-dir=../pysweeper/textures=textures --include-data-dir=../pysweeper/fonts=fonts --include-data-dir=../pysweeper/sounds=sounds --windows-icon-from-ico=../pysweeper/icon.ico --windows-company-name=chubercik --windows-product-name=pysweeper --windows-file-version=0.3 --windows-product-version=0.3 --windows-file-description="a Minesweeper clone written in Python" --windows-disable-console main.py -o pysweeper.exe
22
python3 -m nuitka --clang --onefile --include-data-file=../pysweeper/modules/pygame/libmpg123-0.dll=libmpg123-0.dll --include-data-dir=../pysweeper/data=data --include-data-dir=../pysweeper/textures=textures --include-data-dir=../pysweeper/fonts=fonts --include-data-dir=../pysweeper/sounds=sounds main.py -o pysweeper.elf

textures/icon.png

740 Bytes
Loading

utilities.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import tkinter.filedialog
55
from typing import List, Optional, Tuple
66

7+
from PIL import Image
8+
79
from sprites import Sprites, blit_sprite, game_offset, pg, screen
810

911
sprites = Sprites().sprites
@@ -323,6 +325,14 @@ def prompt_file() -> str:
323325
return file_name
324326

325327

328+
def png_to_ico(inp: str = "textures/icon.png", out: str = "icon.ico") -> None:
329+
img = Image.open(inp)
330+
icon_sizes = [(16, 16), (24, 24), (32, 32),
331+
(48, 48), (64, 64), (128, 128),
332+
(255, 255)]
333+
img.save(out, sizes=icon_sizes)
334+
335+
326336
def main():
327337
pass
328338

0 commit comments

Comments
 (0)