Jozsa Kristof wrote:
> 
> Hello,
> 
>    I wonder what's the decent way of setting an xpm pic to be the pygnome
> applet's icon. My xpm is transparent of course, but if I put it out to a
> GtkPixmap and out to the applet's frame; it wont be transparent. I'd like to
> have a transparent applet look similar to any gnome app launcher with the
> standard grey background tile. Anyone can show me the way to do this please?

If you just want to make an icon to be displayed by the window manager
(when your program is minimized, etc.), you can do the following:

        self.win = GtkWindow()
        pix, mask = create_pixmap_from_xpm(self.win, None, "pixmap.xpm")
        self.win.set_icon(pix, mask)


Cheers.
Jeff
-- 
                      +----------------------------------+
                      |           J.W. Bizzaro           |
                      |                                  |
                      | http://theopenlab.uml.edu/~jeff/ |
                      |                                  |
                      |           THE OPEN LAB           |
                      |    Open Source Bioinformatics    |
                      |                                  |
                      |    http://theopenlab.uml.edu/    |
                      +----------------------------------+
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to