I'm sorry, but I'd wrongly set the constructor of some buttons. Now I've solved! But now, anyone knows the gtk name for the icons "shuffle" and "repeat"??
thanks On Wed, 2010-06-02 at 10:35 -0700, BlassMeGod wrote: > Try this: > Problem is on: gtk.Button image is enabled or disabled by the global theme; > GTK+ button images enable or disable (1 = True and 0 = False); > On Linux: Press alt +F2 type 'gconf-editor' navigate to > '/desktop/gnome/interface' and check 'button_have_icons' or > 'gtk-button-images = 1' in '~/.gtkrc-2.0'); > On Windows: Edit the gtkrc file, found in under > <installation-gtk+-folder>\etc\gtk-2.0 sets the theme and then, the actual > gtkrc that gtk+ uses is under > <installation-gtk+-folder>\share\themes\<theme-folder>\gtk-2.0; > Hope this helps you, > > > ----- Original Message ----- > From: "Pasquale Boemio" <boemianraps...@gmail.com> > To: pygtk@daa.com.au > Sent: Wednesday, June 2, 2010 12:28:19 PM GMT +02:00 Athens, Beirut, > Bucharest, Istanbul > Subject: [pygtk] little icon trouble > > Hi everybody. > I'm working at a little python's applet for the gnome-panel, > but some button icons don't show. > An example: > this is the code that show the image > > self.PlayButton = gtk.Button() > self.PlayButtonImage = gtk.Image() > self.PlayButtonImage.set_from_stock("gtk-media-play",gtk.ICON_SIZE_BUTTON) > self.PlayButton.set_image(self.PlayButtonImage) > self.PlayButton.set_relief(gtk.RELIEF_NONE) > self.PlayButton.connect("clicked",self.myGestour.Play) > self.ButtonBar.add(self.PlayButton) > > this not > self.PrevButton = gtk.Button() > self.PrevButtonImage = gtk.Image() > self.PrevButtonImage.set_from_stock(gtk.STOCK_MEDIA_PREVIOUS,gtk.ICON_SIZE_BUTTON) > self.PrevButton.set_image(self.PrevButtonImage) > self.PrevButton.set_relief(gtk.RELIEF_NONE) > self.PrevButton.connect("clicked",self.myGestour.Prev) > self.ButtonBar.add(self.PrevButton) > > where I wrong? > --- > Pasquale Boemio > boemianraps...@gmail.com > pa.boe...@studenti.unina.it > MSN > Skype > Twitter > boemianraps...@yahoo.com > boemianrapsodi > HelloIAmPau > > _______________________________________________ > pygtk mailing list pygtk@daa.com.au > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > > > > --- Pasquale Boemio boemianraps...@gmail.com pa.boe...@studenti.unina.it MSN Skype Twitter boemianraps...@yahoo.com boemianrapsodi HelloIAmPau _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/