GUI — ospgui#
The ospgui module provides a graphical interface for building ospgrillage bridge deck models interactively, without writing Python code.
Installation#
The GUI depends on PyQt5, which is an optional extra:
pip install "ospgrillage[gui]"
Launching#
From the command line:
ospgui
Or from within Python:
from ospgrillage.ospgui import main
main()
Interface overview#
The window is divided into three panels:
Left — tabbed input forms for geometry, materials, sections, and members (provided by
BridgeInputWidget).Centre — a live code view showing the generated ospgrillage Python source, updated as parameters change.
Right — a 3-D mesh preview rendered via vfo.
API reference#
main()#
Launch the ospgui graphical interface.
Entry point for the ospgui console script. Checks that PyQt5 is available
and exits with a helpful message if not, otherwise starts the Qt application
and opens BridgeAnalysisGUI.
Raises: SystemExit — with code 1 if PyQt5 is not installed; with the Qt
application’s return code on normal exit.