That's not an error is just a warning, you have 2 choices:

1) Follow the warning and use gtk.Image()


2) Add in the beginning of you script

    import warnings
    warnings.simplefilter('ignore')

I suggest you to choose the number 1.




On Mon, 2010-08-02 at 20:40 +0300, Cata wrote:
> I have this error :
> <__main__.ClearlooksStyle object at 0x852b504 (ClearlooksStyle at 0x856b000)>
> dec.py:50: DeprecationWarning: use GtkImage
>   pixmap = gtk.Pixmap(pixmap, mask)
> what is wrong ?
> 
> Regards .
> 
> 2010/7/24 Cata <[email protected]>:
> > I use pygtk to create a class.
> > This class has window = gtk.Window(gtk.WINDOW_POPUP)
> > I put one image . This image is load from file and show it .
> >                fixed = gtk.Fixed()
> >                fixed.put(pixmap, 0, 0)
> >                window.add(fixed)
> >                fixed.show()
> > All this code is on __init__
> > I have another script this use this class .
> > Now i need to change image with new one .
> > Basically i need to change like a animated gif ...
> > Some ideas ?
> > Regards ...
> >
> > --
> > My sites:
> > http://catalin-festila.blogspot.com -about me
> > http://tv.free-tutorials.org - video tutorials
> > http://python-catalin.blogspot.com - my python blog
> >
> 
> 
> 


_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to