Tanya :
Saya sudah membuat interface program dengan glade, dan ingin mengkonversinya menjadi file xml. Bagaimana caranya ?
Jawab :
Bisa gunakan gtk-builder-convert
Perintahnya sederhana :
gtk-builder-convert file.glade file.xml
Selesai.
Tips :
Jika anda mendapatkan pesan kesalahan seperti berikut :
Traceback (most recent call last): File "/usr/bin/gtk-builder-convert", line 799, in <module> sys.exit(main(sys.argv)) File "/usr/bin/gtk-builder-convert", line 787, in main conv.parse_file(input_filename) File "/usr/bin/gtk-builder-convert", line 162, in parse_file self._parse() File "/usr/bin/gtk-builder-convert", line 234, in _parse assert glade_iface, ("Badly formed XML, there is " AssertionError: Badly formed XML, there is no <glade-interface> tag.
Dapat dipecahkan dengan mengganti tag <interface> menjadi <glade-interface> dan </interface> menjadi </glade-interface> di file glade anda
Demikian, semoga manfaat (rezaervani@gmail.com)
It is probably late but for future reference open you .glade file in an editor and change: to and to