convert gtkglade to libglade for a backwards compa

2019-09-19 07:35发布

I have a python gtk app that I am porting to an environment that can only use pygtk2.10. pygtk2.10 doesn't not use the gtkbuilder infrastructure but rather the libglade infrastructure I have a 2 goals

1) convert the gtkbuilder glade file format to libglade format. Basically I want to do the opposite of gtk-builder-convert (which converts libglade to gtkbuilder formats as far as I understand it)

2) find a mapping between gtk.builder functions and libglade functions to be functionally the same

Thanks for the help

1条回答
贼婆χ
2楼-- · 2019-09-19 08:16

To solve #1, you can still save Libglade files in Glade. There is a control at the bottom of the Save dialog where you can select Libglade or GtkBuilder.

To solve #2, I suggest you read the documentation of gtk.Builder and gtk.glade.XML and find out what is appropriate to the way you use each one in your application.

查看更多
登录 后发表回答