convert gtkglade to libglade for a backwards compatibility

和自甴很熟 提交于 2019-12-13 05:16:36

问题


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:


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.



来源:https://stackoverflow.com/questions/5599394/convert-gtkglade-to-libglade-for-a-backwards-compatibility

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!