pyGame within a pyGTK application

前端 未结 7 1888
小鲜肉
小鲜肉 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:46

    I've never attempted it myself, but hearing plenty about other people who've tried, it's not a road you want to go down.

    There is the alternative of putting the gui in pygame itself. There are plenty of gui toolkits built specifically for pygame that you could use. Most of them are rather unfinished, but there are 2 big, actively maintained ones: PGU and OcempGUI. The full list on the pygame site is here.

提交回复
热议问题