星期二, 五月 29, 2007

pyGtk程序如何写?

我收集了很多Linux下的pyGtk程序,并做了一个有趣的比较,目前比较关注三个地方
- 使用galde还是不使用?
- 使用何种方法安装到系统?
- 如何做i18n?

下面是统计出的一个列表:
glade install i18n
gmail-notify √ × xml
gjosts × ? gettext
disksearch √ makefile gettext
comix × setup.py gettext
christine √ autotool gettext
emesene × × gettext
meld √ makefile gettext
quod libet × makefile gettext
revelation × autotool gettext
scribes × autotool gettext
gourmet √ setup.py gettext
penguintv √ setup.py gettext
mirage × setup.py gettext
deluge √ setup.py gettext
straw √ setup.py gettext
gpodder √ makefile gettext
jbrout √ × gettext

(?表示没有搞清楚,makefile表示手工写makefile,autotool表示使用GNU的autoconf和automake,setup.py表示使用python提供的distutils)

这样的统计可以得出一些有意义的结论:
- 如果要做i18n的话,不要犹豫,使用gettext不会错。
- 是否使用glade,可能要根据应用考虑一下,但似乎使用glade的应用稍多一些。
- 使用python的distutils/setup是个不错的选择。

0 Comments:

发表评论

<< Home