PyGTK里取得一个xpm图标的灰度图 Posted on 2007-04-18, Wednesday by wolfg 最近用PyMaemo写一个N800上跑的程序时用到的: self.mote_pixbuf = gtk.gdk.pixbuf_new_from_xpm_data(MOTE_PIXMAP) self.mote_gray_pixbuf = self.mote_pixbuf.copy() self.mote_pixbuf.saturate_and_pixelate(self.mote_gray_pixbuf, 0.0, True)