Hi James et al...

I have a ui I have built both manually and using libglade. I have a
pixmap that I need to change the appearance of while the app is running.
When I do this kind of thing in the manually built version:

------
class Pixmap1(gtk.GtkPixmap):
  def __init__(self,pixmapData):
    pix,
msk=gtk.create_pixmap_from_xpm_d(gtk.GtkWindow(),None,pixmapData)
    gtk.GtkPixmap.__init__(self,pix,msk)
pixmap1=Pixmap1(initialPixmapData)
pixmap1.show()
#etc., we have pixmap1 displaying fine
#then later on...
pix, msk = gtk.create_pixmap_from_xpm_d(gtk.GtkWindow(),None,
                                        newPixmapData)
pixmap1.set(pix,msk)
------

It works exactly as I'd expect, that is, the appearance of pixmap1
changes to reflect the new pixmap data.

But when I do this kind of thing in the libglade version:

------
widgets = libglade.GladeXML('app.glade')
pixmap1 = widgets.get_widget('pixmap1')
#etc., we have pixmap1 displaying fine
#then later on...
pix, msk = gtk.create_pixmap_from_xpm_d(gtk.GtkWindow(),None,
                                        newPixmapData)
pixmap1.set(pix,msk)
------

The appearance of pixmap1 does not change. Why? How do I acheive my
desired result in the libglade version?

TIA for any replies,
regards,
Stephen.
-- 
<[EMAIL PROTECTED]>
More power to those who don't care for it.

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to