added motion trajectory simulation

This commit is contained in:
ykcheungab
2026-09-23 09:58:00 +08:00
parent f1bec62ca4
commit 3347d17a20
25 changed files with 5198 additions and 1762 deletions
+15
View File
@@ -30,6 +30,17 @@ if sys.platform == "win32" and "QT_QPA_FONTDIR" not in os.environ:
if _fonts.is_dir():
os.environ["QT_QPA_FONTDIR"] = str(_fonts)
# The report quotes labels, and half of them are Chinese. A Windows console
# defaults to a legacy code page that cannot encode them, so the run ended in a
# UnicodeEncodeError *after* every check had passed — the worst kind of noise.
for _stream in (sys.stdout, sys.stderr):
_reconfigure = getattr(_stream, "reconfigure", None)
if _reconfigure is not None:
try:
_reconfigure(encoding="utf-8", errors="replace")
except (ValueError, OSError): # pragma: no cover - stream already detached
pass
RESOLUTIONS = ((1440, 900), (1920, 1080))
@@ -394,6 +405,10 @@ def main() -> int:
)
window.workspace.set_current_key("axes")
try:
window.poller.shutdown()
except Exception: # noqa: BLE001 - a shutdown must not mask the result
pass
window.close()
app.processEvents()