Truss Analysis Program Tk

Source: examples/gui/truss_analysis_program_tk.py

Introduction

Compatibility launcher for the packaged truss-analysis GUI.

Technical Implementation

This page is generated from the top-of-file module docstring and the example source code. The full script is included below for direct inspection.

 1from __future__ import annotations
 2
 3import design_research_problems as derp
 4from design_research_problems.gui import launch_gui
 5
 6
 7def main() -> None:
 8    """Launch the truss analysis GUI from the core library."""
 9    try:
10        launch_gui("truss")
11    except derp.MissingOptionalDependencyError as exc:
12        raise SystemExit(str(exc)) from exc
13
14
15if __name__ == "__main__":
16    main()

Expected Results

Run Command

PYTHONPATH=src python3 examples/gui/truss_analysis_program_tk.py

Run the command shown below from repository root. Output should summarize the problem setup, a baseline solution, or diagnostic values relevant to this example.