Skip to content

Instantly share code, notes, and snippets.

View benreu's full-sized avatar

theGtknerd benreu

  • New York USA
View GitHub Profile
@shellexy
shellexy / glade2py.py
Created June 27, 2014 10:06
从 glade-2 界面文件生成 pygtk 代码,并使用 pygtkcompat 来支持 gtk3
#!/usr/bin/python
# -*- coding: UTF-8 -*-
#@license: LGPL-3
"""由 glade 文件生成 python 源码
使用 i18n gettext 国际化
i18n.py 示例:
--
@mendhak
mendhak / starhscale.py
Created May 15, 2012 21:10
A custom GTK widget; horizontal slider with stars for rating an item
#!/usr/bin/env python
"""
StarHScale a Horizontal slider that uses stars
Copyright (C) 2006 Mark Mruss <selsine@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either