pyGame within a pyGTK application

前端 未结 7 1828
小鲜肉
小鲜肉 2021-01-12 00:54

What is the best way to use PyGame (SDL) within a PyGTK application?

I\'m searching for a method that allows me to have a drawing area in the GTK window and at the s

7条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 01:37

    There's a simple solution that might work for you.

    Write the PyGTK stuff and PyGame stuff as separate applications. Then from the PyGTK application call the PyGame application, using os.system to call the PyGame application. If you need to share data between the two then either use a database, pipes or IPC.

提交回复
热议问题