my difficulty is to place a figure inside of statusbar.does not know if it can thus be example:
pixmap, mask = gtk.gdk.pixmap_create_from_xpm( self.area.window, style.bg[gtk.STATE_NORMAL], figure.xpm) self.area.window.draw_drawable(self.gc, pixmap, 0, 0, x, y, -1, -1) self.statusbar = gtk.Statusbar(); self.aux=self.statusbar.get_context_id("id_1") #self.statusbar.push(self.aux,pixmap)
I need to place pixmap in self.statusbar.push(self.aux,pixmap),
gtk.StatusBar is a subclass of gtk.HBox, so you could put your pixbuf into a gtk.Image and pack_start it into the statusbar.
pixbuf = gtk.gdk.pixbuf_new_from_file('figure.xpm')
image = gtk.Image()
image.set_from_pixbuf(pixbuf)
statusbar.pack_start(image)-- Tim Evans Applied Research Associates NZ http://www.aranz.com/ _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
