WinColl 0.9.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- WinColl-0.9.6.dist-info/METADATA +138 -0
- WinColl-0.9.6.dist-info/RECORD +37 -0
- WinColl-0.9.6.dist-info/WHEEL +5 -0
- WinColl-0.9.6.dist-info/entry_points.txt +2 -0
- WinColl-0.9.6.dist-info/top_level.txt +1 -0
- wincoll/Collect.wav +0 -0
- wincoll/Slide.wav +0 -0
- wincoll/Splat.wav +0 -0
- wincoll/Unlock.wav +0 -0
- wincoll/__init__.py +643 -0
- wincoll/__main__.py +7 -0
- wincoll/acorn-mode-1.ttf +0 -0
- wincoll/diamond.png +0 -0
- wincoll/langdetect.py +60 -0
- wincoll/levels/01.tmx +61 -0
- wincoll/levels/02.tmx +61 -0
- wincoll/levels/03.tmx +61 -0
- wincoll/levels/04.tmx +61 -0
- wincoll/levels/05.tmx +61 -0
- wincoll/levels/06.tmx +61 -0
- wincoll/levels/Blob.png +0 -0
- wincoll/levels/Brick.png +0 -0
- wincoll/levels/Diamond.png +0 -0
- wincoll/levels/Earth.png +0 -0
- wincoll/levels/Gap.png +0 -0
- wincoll/levels/Key.png +0 -0
- wincoll/levels/Rock.png +0 -0
- wincoll/levels/Safe.png +0 -0
- wincoll/levels/Win.png +0 -0
- wincoll/levels/WinColl.tsx +34 -0
- wincoll/locale/el/LC_MESSAGES/wincoll.mo +0 -0
- wincoll/locale/fr/LC_MESSAGES/argparse.mo +0 -0
- wincoll/locale/fr/LC_MESSAGES/wincoll.mo +0 -0
- wincoll/ptext.py +1196 -0
- wincoll/splat.png +0 -0
- wincoll/title.png +0 -0
- wincoll/warnings_util.py +29 -0
wincoll/splat.png
ADDED
|
Binary file
|
wincoll/title.png
ADDED
|
Binary file
|
wincoll/warnings_util.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Warning and error routines.
|
|
3
|
+
Copyright (c) Reuben Thomas 2023.
|
|
4
|
+
Released under the GPL version 3, or (at your option) any later version.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import sys
|
|
8
|
+
from warnings import warn
|
|
9
|
+
from typing import Callable, Optional, Union, Type, NoReturn, TextIO
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# Error messages
|
|
13
|
+
def simple_warning(prog: str) -> Callable[..., None]:
|
|
14
|
+
def _warning( # pylint: disable=too-many-arguments
|
|
15
|
+
message: Union[Warning, str],
|
|
16
|
+
category: Type[Warning], # pylint: disable=unused-argument
|
|
17
|
+
filename: str, # pylint: disable=unused-argument
|
|
18
|
+
lineno: int, # pylint: disable=unused-argument
|
|
19
|
+
file: Optional[TextIO] = sys.stderr,
|
|
20
|
+
line: Optional[str] = None, # pylint: disable=unused-argument
|
|
21
|
+
) -> None:
|
|
22
|
+
print(f"{prog}: {message}", file=file or sys.stderr)
|
|
23
|
+
|
|
24
|
+
return _warning
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def die(msg: str, code: Optional[int] = 1) -> NoReturn:
|
|
28
|
+
warn(msg)
|
|
29
|
+
sys.exit(code)
|