Line data Source code
1 : # SPDX-FileCopyrightText: 2025 Pairinteraction Developers 2 : # SPDX-License-Identifier: LGPL-3.0-or-later 3 : 4 0 : import sys 5 : 6 0 : from pairinteraction_gui.app import Application 7 0 : from pairinteraction_gui.main_window import MainWindow 8 : 9 : 10 0 : def main() -> int: 11 : """Run the PairInteraction GUI application. 12 : 13 : Returns: 14 : int: Application exit code 15 : 16 : """ 17 0 : app = Application(sys.argv) 18 0 : app.setApplicationName("PairInteraction") 19 : 20 0 : app.allow_ctrl_c() 21 : 22 0 : window = MainWindow() 23 0 : window.show() 24 : 25 0 : return sys.exit(app.exec()) 26 : 27 : 28 0 : if __name__ == "__main__": 29 0 : main()