Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion stubs/pyinstaller/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ PyInstaller.utils.hooks.django
PyInstaller.utils.hooks.gi
PyInstaller.utils.hooks.qt
PyInstaller.utils.hooks.setuptools
PyInstaller.utils.hooks.tcl_tk
PyInstaller.utils.misc
PyInstaller.utils.osx
PyInstaller.utils.run_tests
Expand Down
4 changes: 4 additions & 0 deletions stubs/pyinstaller/PyInstaller/building/splash.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from _typeshed import StrPath

from PyInstaller.building.datastruct import Target, _TOCTuple
from PyInstaller.utils.hooks.tcl_tk import TclTkInfo

# Referenced in https://pyinstaller.org/en/stable/spec-files.html#example-merge-spec-file
# Not to be imported during runtime, but is the type reference for spec files which are executed as python code
Expand Down Expand Up @@ -42,4 +43,7 @@ class Splash(Target):
always_on_top: bool = True,
) -> None: ...
def assemble(self) -> None: ...
# This private method is the only way to match Splash Screen support validation without triggering an actual build
@staticmethod
def _check_tcl_tk_compatibility(tcltk_info: TclTkInfo) -> None: ...
def generate_script(self) -> str: ...
20 changes: 20 additions & 0 deletions stubs/pyinstaller/PyInstaller/utils/hooks/tcl_tk.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from typing import Final

class TclTkInfo:
TCL_ROOTNAME: Final = "_tcl_data"
TK_ROOTNAME: Final = "_tk_data"
def __init__(self) -> None: ...
available: bool
tkinter_extension_file: str | None
tcl_version: tuple[int, int] | None
tk_version: tuple[int, int] | None
tcl_threaded: bool
tcl_data_dir: str | None
tk_data_dir: str | None
tcl_module_dir: str | None
is_macos_system_framework: bool
tcl_shared_library: str | None
tk_shared_library: str | None
data_files: list[tuple[str, str, str]]

tcltk_info: TclTkInfo