putting glade interface in python

后端 未结 5 517
别跟我提以往
别跟我提以往 2021-02-06 02:30

I\'ve made a gui in glade that I want to put in a python program. I was adapting the instructions from a tutorial I found online to load in my glade file (http://www.pygtk.org/a

5条回答
  •  再見小時候
    2021-02-06 02:58

    Your PyHelloWorld.glade is incorrect. Make sure you created it with the correct Glade application, there are Glade2 and Glade3 applications that can be installed and used. If you downloaded the file make sure it is correct. The error message says it all:

    Expected .  Got  
    

    So the XML file has the interface tag, but PyGTK library expects glade-interface tag.

提交回复
热议问题