Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 620 Bytes

File metadata and controls

21 lines (19 loc) · 620 Bytes

This is a basic GUI for IntFicPy games, implemented with PyQt5.

To use this GUI in your IntFicPy game, create a QApplication in your main game file, and create an instance of the App class defined here, then pass it into your IFPGame instance

    from PyQt5.QtWidgets import QApplication
    from ifp_qt_gui.gui import Player
    from intficpy.ifp_game import IFPGame
    me = Player("yourself")
    q_application = QApplication(sys.argv)
    app = App()
    game = IFPGame(me, app)

After the content of your game, show the Qt GUI

    game.initGame()
    app.show()
    sys.exit(q_application.exec_())