"""Entry point for ``python -m rshaketools`` and the ``rshake-tools`` console script."""

import sys


def main():
    """Launch the RShake-Tools Tkinter GUI."""
    # Matplotlib must use the TkAgg backend when embedded in Tkinter
    import matplotlib
    matplotlib.use("TkAgg")

    from rshaketools.gui.app import RShakeApp

    app = RShakeApp()
    app.mainloop()


if __name__ == "__main__":
    main()
