added motion trajectory simulation
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user