Debian Codegraph @

jedi/third_party/typeshed/stdlib/winsound.pyi

raw symbols SCIP
1 import sys
2 from _typeshed import ReadableBuffer
3 from typing import Final, Literal, overload
4
5 if sys.platform == "win32":
6 SND_APPLICATION: Final = 128
7 SND_FILENAME: Final = 131072
8 SND_ALIAS: Final = 65536
9 SND_LOOP: Final = 8
10 SND_MEMORY: Final = 4
11 SND_PURGE: Final = 64
12 SND_ASYNC: Final = 1
13 SND_NODEFAULT: Final = 2
14 SND_NOSTOP: Final = 16
15 SND_NOWAIT: Final = 8192
16 if sys.version_info >= (3, 14):
17 SND_SENTRY: Final = 524288
18 SND_SYNC: Final = 0
19 SND_SYSTEM: Final = 2097152
20
21 MB_ICONASTERISK: Final = 64
22 MB_ICONEXCLAMATION: Final = 48
23 MB_ICONHAND: Final = 16
24 MB_ICONQUESTION: Final = 32
25 MB_OK: Final = 0
26 if sys.version_info >= (3, 14):
27 MB_ICONERROR: Final = 16
28 MB_ICONINFORMATION: Final = 64
29 MB_ICONSTOP: Final = 16
30 MB_ICONWARNING: Final = 48
31
32 def Beep(frequency: int, duration: int) -> None: ...
33 # Can actually accept anything ORed with 4, and if not it's definitely str, but that's inexpressible
34 @overload
35 def PlaySound(sound: ReadableBuffer | None, flags: Literal[4]) -> None: ...
36 @overload
37 def PlaySound(sound: str | ReadableBuffer | None, flags: int) -> None: ...
38 def MessageBeep(type: int = 0) -> None: ...