wolfg's Weblog

wolfg's journey with open source, linux, programming, sysadm …

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Programming
    • IceRocket BlogTracker
  • About

Tag Archives: pygtk

PyGTK里取得一个xpm图标的灰度图

Posted on 2007-04-18, Wednesday by wolfg
Reply

最近用PyMaemo写一个N800上跑的程序时用到的:

  1. self.mote_pixbuf = gtk.gdk.pixbuf_new_from_xpm_data(MOTE_PIXMAP)
  2. self.mote_gray_pixbuf = self.mote_pixbuf.copy()
  3. self.mote_pixbuf.saturate_and_pixelate(self.mote_gray_pixbuf, 0.0, True)

colored

grayed

Posted in Dev, Python | Tagged pygtk, Python | Leave a reply

Archives

My instagrams

  • #leaf
  • #eclipse#

Tags

770 bluetooth cacti chinaunix CLOSE_WAIT debian eclipse firefox extention fluxbox font google HttpClient input method Java jetty jvm latex Linux Mac maemo maemocjk maven mysql n800 nagios nginx nokia postfix Python scim smtp stardict Symbian T43 tcp tex theme ubuntu vmdk vmware vmware-player wordpress xfce 监控 运维

Recent Posts

  • 今晚拍的月亮
  • 笔记本Gentoo系统升级
  • 知道了关于Linux进程的一点事儿
  • Radio Man
  • 打算DIY个快门定时器

Recent Comments

  • guoyong on 笔记本Gentoo系统升级
  • wolfg on
  • ziv cheung on 使用Cacti监控JVM
  • wolfg on About
  • chris on About

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
This work by 郭勇 is licensed under a Attribution-Noncommercial-Share Alike 2.5 China Mainland.
Proudly powered by WordPress