Skip to content

RALWORKS/IFP-Qt-GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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_())

About

A simple Qt GUI for IntFicPy games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages