Re: [pygtk] little icon trouble

2010-06-03 Thread Timo
On 02-06-10 20:26, Pasquale Boemio wrote:
 But now, anyone knows the gtk name for the icons shuffle and
 repeat??

All stock items are listed here: 
http://www.pygtk.org/docs/pygtk/gtk-stock-items.html

But it looks like shuffle and repeat aren't there. Maybe these icons are 
in one of the latest PyGTK versions and the docs aren't updated yet.

You could also look at other PyGTK mediaplayers sourcecode to see how 
they do it.

Cheers,
Timo

 thanks

 ---
 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/


___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] little icon trouble

2010-06-03 Thread Pasquale Boemio
I've resolved with a simpler gtk.checkmenuitem..

if anybody is concerned, could give a look at my project. Is a mpd
player for the gnome-panel.
It is still in svn version, but it is usable!
All kind of comments are well accepted, thanks

On Thu, 2010-06-03 at 10:00 +0200, Timo wrote:
 
 
 pygtk@daa.com.au
 
--- 
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/


Re: [pygtk] little icon trouble

2010-06-03 Thread Pasquale Boemio
I've resolved with a simpler gtk.checkmenuitem..

if anybody is concerned, could give a look at my project. Is a mpd
player for the gnome-panel.
It is still in svn version, but it is usable!
All kind of comments are well accepted, thanks

http://code.google.com/p/simplerc/

On Thu, 2010-06-03 at 10:00 +0200, Timo wrote:
 
 
 pygtk@daa.com.au
 
--- 
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/


Re: [pygtk] little icon trouble

2010-06-02 Thread Pietro Battiston
Il giorno mer, 02/06/2010 alle 11.28 +0200, Pasquale Boemio ha scritto:
 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?

Don't know, but on my system the following shows both.

import gtk

PrevButton = gtk.Button()
PrevButtonImage = gtk.Image()
PrevButtonImage.set_from_stock(gtk.STOCK_MEDIA_PREVIOUS,gtk.ICON_SIZE_BUTTON)
PrevButton.set_image(PrevButtonImage)
PrevButton.set_relief(gtk.RELIEF_NONE)

PlayButton = gtk.Button()
PlayButtonImage = gtk.Image()
PlayButtonImage.set_from_stock(gtk-media-play,gtk.ICON_SIZE_BUTTON)
PlayButton.set_image(PlayButtonImage)
PlayButton.set_relief(gtk.RELIEF_NONE)

w = gtk.Window()
w.add(gtk.VBox())
w.child.pack_start(PlayButton)
w.child.pack_start(PrevButton)
w.show_all()

gtk.main()


So if it doesn't work for you, I guess the problem is not in the code.

Pietro

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] little icon trouble

2010-06-02 Thread Pasquale Boemio
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/