Stock Icons with no Image

View: New views
10 Messages — Rating Filter:   Alert me  

Stock Icons with no Image

by Timothy Ulusoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have a problem with stock items. When I try to show a button with stock icon, I only see the text. For example, the following code from Zetcode website only gives me the texts of the buttons (no images):

import gtk

class PyApp(gtk.Window):
def __init__(self):
super(PyApp, self).__init__()

self.set_title("Buttons")
self.set_size_request(250, 200)
self.set_position(gtk.WIN_POS_CENTER)

btn1 = gtk.Button("Button")
btn1.set_sensitive(False)
btn2 = gtk.Button("Button")
btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)
btn4 = gtk.Button("Button")
btn4.set_size_request(80, 40)

fixed = gtk.Fixed()

fixed.put(btn1, 20, 30)
fixed.put(btn2, 100, 30)
fixed.put(btn3, 20, 80)
fixed.put(btn4, 100, 80)

self.connect("destroy", gtk.main_quit)

self.add(fixed)
self.show_all()


PyApp()
gtk.main()

I'm running Ubuntu Karmic Koala. Thinking that this may be related to the GTK theme I use (Human theme), I tried the other themes, but to no avail. Any comments will be much appreciated.

Thanks.
Timothy

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

Re: Stock Icons with no Image

by Marco Antonio Islas Cruz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On karmic, I can't remember if it is because of Gtk+ or GNOME there are
no icons in stock buttons. You must use a custom button (with a hbox for
example) with a gtk.Image and a gtk.Label.


On Tue, 2009-11-03 at 21:03 +0200, Timothy Ulusoy wrote:

> Hello,
>
> I have a problem with stock items. When I try to show a button with
> stock icon, I only see the text. For example, the following code from
> Zetcode website only gives me the texts of the buttons (no images):
>
> import gtk
>
> class PyApp(gtk.Window):
>     def __init__(self):
>         super(PyApp, self).__init__()
>        
>         self.set_title("Buttons")
>         self.set_size_request(250, 200)
>
>         self.set_position(gtk.WIN_POS_CENTER)
>        
>         btn1 = gtk.Button("Button")
>         btn1.set_sensitive(False)
>         btn2 = gtk.Button("Button")
>         btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)
>
>         btn4 = gtk.Button("Button")
>         btn4.set_size_request(80, 40)
>
>         fixed = gtk.Fixed()
>
>         fixed.put(btn1, 20, 30)
>         fixed.put(btn2, 100, 30)
>         fixed.put(btn3, 20, 80)
>
>         fixed.put(btn4, 100, 80)
>        
>         self.connect("destroy", gtk.main_quit)
>        
>         self.add(fixed)
>         self.show_all()
>
>
> PyApp()
> gtk.main()
>
> I'm running Ubuntu Karmic Koala. Thinking that this may be related to
> the GTK theme I use (Human theme), I tried the other themes, but to no
> avail. Any comments will be much appreciated.
>
> Thanks.
> Timothy
> _______________________________________________
> pygtk mailing list   pygtk@...
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

--
<--Linux... Because I'm Free-->
Marco Antonio Islas Cruz
"Markuz"
Linux User #280229
markuz@...
markuz@...
markuz@...
marco.islas@...
islacruz@...
http://www.islascruz.org
http://wwww.christine-project.org
http://www.linuxpozarica.com


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

signature.asc (204 bytes) Download Attachment

Re: Stock Icons with no Image

by Timothy Ulusoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you Marco,

Now at least I know that it is a general problem, and it is not only my system that fails. :)



On Tue, Nov 3, 2009 at 9:56 PM, Marco Antonio Islas Cruz <markuz@...> wrote:
On karmic, I can't remember if it is because of Gtk+ or GNOME there are
no icons in stock buttons. You must use a custom button (with a hbox for
example) with a gtk.Image and a gtk.Label.


On Tue, 2009-11-03 at 21:03 +0200, Timothy Ulusoy wrote:
> Hello,
>
> I have a problem with stock items. When I try to show a button with
> stock icon, I only see the text. For example, the following code from
> Zetcode website only gives me the texts of the buttons (no images):
>
> import gtk
>
> class PyApp(gtk.Window):
>     def __init__(self):
>         super(PyApp, self).__init__()
>
>         self.set_title("Buttons")
>         self.set_size_request(250, 200)
>
>         self.set_position(gtk.WIN_POS_CENTER)
>
>         btn1 = gtk.Button("Button")
>         btn1.set_sensitive(False)
>         btn2 = gtk.Button("Button")
>         btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)
>
>         btn4 = gtk.Button("Button")
>         btn4.set_size_request(80, 40)
>
>         fixed = gtk.Fixed()
>
>         fixed.put(btn1, 20, 30)
>         fixed.put(btn2, 100, 30)
>         fixed.put(btn3, 20, 80)
>
>         fixed.put(btn4, 100, 80)
>
>         self.connect("destroy", gtk.main_quit)
>
>         self.add(fixed)
>         self.show_all()
>
>
> PyApp()
> gtk.main()
>
> I'm running Ubuntu Karmic Koala. Thinking that this may be related to
> the GTK theme I use (Human theme), I tried the other themes, but to no
> avail. Any comments will be much appreciated.
>
> Thanks.
> Timothy
> _______________________________________________
> pygtk mailing list   pygtk@...
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/


--
<--Linux... Because I'm Free-->
Marco Antonio Islas Cruz
"Markuz"
Linux User #280229
markuz@...
markuz@...
markuz@...
marco.islas@...
islacruz@...
http://www.islascruz.org
http://wwww.christine-project.org
http://www.linuxpozarica.com


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

Re: Stock Icons with no Image

by Marco Antonio Islas Cruz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Actually it is not a problem, developers wanted to behave like that.

On Tue, 2009-11-03 at 22:08 +0200, Timothy Ulusoy wrote:

> Thank you Marco,
>
> Now at least I know that it is a general problem, and it is not only
> my system that fails. :)
>
>
>
> On Tue, Nov 3, 2009 at 9:56 PM, Marco Antonio Islas Cruz
> <markuz@...> wrote:
>         On karmic, I can't remember if it is because of Gtk+ or GNOME
>         there are
>         no icons in stock buttons. You must use a custom button (with
>         a hbox for
>         example) with a gtk.Image and a gtk.Label.
>        
>        
>        
>         On Tue, 2009-11-03 at 21:03 +0200, Timothy Ulusoy wrote:
>         > Hello,
>         >
>         > I have a problem with stock items. When I try to show a
>         button with
>         > stock icon, I only see the text. For example, the following
>         code from
>         > Zetcode website only gives me the texts of the buttons (no
>         images):
>         >
>         > import gtk
>         >
>         > class PyApp(gtk.Window):
>         >     def __init__(self):
>         >         super(PyApp, self).__init__()
>         >
>         >         self.set_title("Buttons")
>         >         self.set_size_request(250, 200)
>         >
>         >         self.set_position(gtk.WIN_POS_CENTER)
>         >
>         >         btn1 = gtk.Button("Button")
>         >         btn1.set_sensitive(False)
>         >         btn2 = gtk.Button("Button")
>         >         btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)
>         >
>         >         btn4 = gtk.Button("Button")
>         >         btn4.set_size_request(80, 40)
>         >
>         >         fixed = gtk.Fixed()
>         >
>         >         fixed.put(btn1, 20, 30)
>         >         fixed.put(btn2, 100, 30)
>         >         fixed.put(btn3, 20, 80)
>         >
>         >         fixed.put(btn4, 100, 80)
>         >
>         >         self.connect("destroy", gtk.main_quit)
>         >
>         >         self.add(fixed)
>         >         self.show_all()
>         >
>         >
>         > PyApp()
>         > gtk.main()
>         >
>         > I'm running Ubuntu Karmic Koala. Thinking that this may be
>         related to
>         > the GTK theme I use (Human theme), I tried the other themes,
>         but to no
>         > avail. Any comments will be much appreciated.
>         >
>         > Thanks.
>         > Timothy
>        
>         > _______________________________________________
>         > pygtk mailing list   pygtk@...
>         > http://www.daa.com.au/mailman/listinfo/pygtk
>         > Read the PyGTK FAQ: http://faq.pygtk.org/
>        
>        
>         --
>         <--Linux... Because I'm Free-->
>         Marco Antonio Islas Cruz
>         "Markuz"
>         Linux User #280229
>         markuz@...
>         markuz@...
>         markuz@...
>         marco.islas@...
>         islacruz@...
>         http://www.islascruz.org
>         http://wwww.christine-project.org
>         http://www.linuxpozarica.com
>

--
<--Linux... Because I'm Free-->
Marco Antonio Islas Cruz
"Markuz"
Linux User #280229
markuz@...
markuz@...
markuz@...
marco.islas@...
islacruz@...
http://www.islascruz.org
http://wwww.christine-project.org
http://www.linuxpozarica.com


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

signature.asc (204 bytes) Download Attachment

Re: Stock Icons with no Image

by Timothy Ulusoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Then this is a case of "it's not a bug, it's a feature!"

Is there any document relating to this decision of the developers, that you can direct me to?

Thanks a lot.

On Tue, Nov 3, 2009 at 10:23 PM, Marco Antonio Islas Cruz <markuz@...> wrote:
Actually it is not a problem, developers wanted to behave like that.

On Tue, 2009-11-03 at 22:08 +0200, Timothy Ulusoy wrote:
> Thank you Marco,
>
> Now at least I know that it is a general problem, and it is not only
> my system that fails. :)
>
>
>
> On Tue, Nov 3, 2009 at 9:56 PM, Marco Antonio Islas Cruz
> <markuz@...> wrote:
>         On karmic, I can't remember if it is because of Gtk+ or GNOME
>         there are
>         no icons in stock buttons. You must use a custom button (with
>         a hbox for
>         example) with a gtk.Image and a gtk.Label.
>
>
>
>         On Tue, 2009-11-03 at 21:03 +0200, Timothy Ulusoy wrote:
>         > Hello,
>         >
>         > I have a problem with stock items. When I try to show a
>         button with
>         > stock icon, I only see the text. For example, the following
>         code from
>         > Zetcode website only gives me the texts of the buttons (no
>         images):
>         >
>         > import gtk
>         >
>         > class PyApp(gtk.Window):
>         >     def __init__(self):
>         >         super(PyApp, self).__init__()
>         >
>         >         self.set_title("Buttons")
>         >         self.set_size_request(250, 200)
>         >
>         >         self.set_position(gtk.WIN_POS_CENTER)
>         >
>         >         btn1 = gtk.Button("Button")
>         >         btn1.set_sensitive(False)
>         >         btn2 = gtk.Button("Button")
>         >         btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)
>         >
>         >         btn4 = gtk.Button("Button")
>         >         btn4.set_size_request(80, 40)
>         >
>         >         fixed = gtk.Fixed()
>         >
>         >         fixed.put(btn1, 20, 30)
>         >         fixed.put(btn2, 100, 30)
>         >         fixed.put(btn3, 20, 80)
>         >
>         >         fixed.put(btn4, 100, 80)
>         >
>         >         self.connect("destroy", gtk.main_quit)
>         >
>         >         self.add(fixed)
>         >         self.show_all()
>         >
>         >
>         > PyApp()
>         > gtk.main()
>         >
>         > I'm running Ubuntu Karmic Koala. Thinking that this may be
>         related to
>         > the GTK theme I use (Human theme), I tried the other themes,
>         but to no
>         > avail. Any comments will be much appreciated.
>         >
>         > Thanks.
>         > Timothy
>
>         > _______________________________________________
>         > pygtk mailing list   pygtk@...
>         > http://www.daa.com.au/mailman/listinfo/pygtk
>         > Read the PyGTK FAQ: http://faq.pygtk.org/
>
>
>         --
>         <--Linux... Because I'm Free-->
>         Marco Antonio Islas Cruz
>         "Markuz"
>         Linux User #280229
>         markuz@...
>         markuz@...
>         markuz@...
>         marco.islas@...
>         islacruz@...
>         http://www.islascruz.org
>         http://wwww.christine-project.org
>         http://www.linuxpozarica.com
>


--


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

Parent Message unknown Stock Icons with no Image

by Timothy Ulusoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>>On Tue, Nov 3, 2009 at 10:54 PM, francesco <francesco@...> wrote: you can change the theme, there are themes with icons in stock button and other without ... some thing in windows with default gtk theme.
F.

***

Actually, trying all the themes in GNOME's list was the first thing I did when I first encountered this issue, because I know from my Windows computer that the default GTK theme does not show the stock icons. Therefore I use the "metal" theme in my Windows machine. However, changing the themes in Ubuntu does not solve the "problem".


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

Re: Stock Icons with no Image

by Timo List :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Search a bit in gconf-editor. There is a key you can set back to True to
let the stock icons show.

Timo


Timothy Ulusoy schreef:

> Then this is a case of "it's not a bug, it's a feature!"
>
> Is there any document relating to this decision of the developers,
> that you can direct me to?
>
> Thanks a lot.
>
> On Tue, Nov 3, 2009 at 10:23 PM, Marco Antonio Islas Cruz
> <markuz@... <mailto:markuz@...>> wrote:
>
>     Actually it is not a problem, developers wanted to behave like that.
>
>     On Tue, 2009-11-03 at 22:08 +0200, Timothy Ulusoy wrote:
>     > Thank you Marco,
>     >
>     > Now at least I know that it is a general problem, and it is not only
>     > my system that fails. :)
>     >
>     >
>     >
>     > On Tue, Nov 3, 2009 at 9:56 PM, Marco Antonio Islas Cruz
>     > <markuz@... <mailto:markuz@...>> wrote:
>     >         On karmic, I can't remember if it is because of Gtk+ or
>     GNOME
>     >         there are
>     >         no icons in stock buttons. You must use a custom button
>     (with
>     >         a hbox for
>     >         example) with a gtk.Image and a gtk.Label.
>     >
>     >
>     >
>     >         On Tue, 2009-11-03 at 21:03 +0200, Timothy Ulusoy wrote:
>     >         > Hello,
>     >         >
>     >         > I have a problem with stock items. When I try to show a
>     >         button with
>     >         > stock icon, I only see the text. For example, the
>     following
>     >         code from
>     >         > Zetcode website only gives me the texts of the buttons (no
>     >         images):
>     >         >
>     >         > import gtk
>     >         >
>     >         > class PyApp(gtk.Window):
>     >         >     def __init__(self):
>     >         >         super(PyApp, self).__init__()
>     >         >
>     >         >         self.set_title("Buttons")
>     >         >         self.set_size_request(250, 200)
>     >         >
>     >         >         self.set_position(gtk.WIN_POS_CENTER)
>     >         >
>     >         >         btn1 = gtk.Button("Button")
>     >         >         btn1.set_sensitive(False)
>     >         >         btn2 = gtk.Button("Button")
>     >         >         btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)
>     >         >
>     >         >         btn4 = gtk.Button("Button")
>     >         >         btn4.set_size_request(80, 40)
>     >         >
>     >         >         fixed = gtk.Fixed()
>     >         >
>     >         >         fixed.put(btn1, 20, 30)
>     >         >         fixed.put(btn2, 100, 30)
>     >         >         fixed.put(btn3, 20, 80)
>     >         >
>     >         >         fixed.put(btn4, 100, 80)
>     >         >
>     >         >         self.connect("destroy", gtk.main_quit)
>     >         >
>     >         >         self.add(fixed)
>     >         >         self.show_all()
>     >         >
>     >         >
>     >         > PyApp()
>     >         > gtk.main()
>     >         >
>     >         > I'm running Ubuntu Karmic Koala. Thinking that this may be
>     >         related to
>     >         > the GTK theme I use (Human theme), I tried the other
>     themes,
>     >         but to no
>     >         > avail. Any comments will be much appreciated.
>     >         >
>     >         > Thanks.
>     >         > Timothy
>     >
>     >         > _______________________________________________
>     >         > pygtk mailing list   pygtk@...
>     <mailto:pygtk@...>
>     >         > http://www.daa.com.au/mailman/listinfo/pygtk
>     >         > Read the PyGTK FAQ: http://faq.pygtk.org/
>     >
>     >
>     >         --
>     >         <--Linux... Because I'm Free-->
>     >         Marco Antonio Islas Cruz
>     >         "Markuz"
>     >         Linux User #280229
>     >         markuz@... <mailto:markuz@...>
>     >         markuz@... <mailto:markuz@...>
>     >         markuz@... <mailto:markuz@...>
>     >         marco.islas@... <mailto:marco.islas@...>
>     >         islacruz@... <mailto:islacruz@...>
>     >         http://www.islascruz.org
>     >         http://wwww.christine-project.org
>     >         http://www.linuxpozarica.com
>     >
>
>
>     --
>     <--Linux... Because I'm Free-->
>     Marco Antonio Islas Cruz
>     "Markuz"
>     Linux User #280229
>     markuz@... <mailto:markuz@...>
>     markuz@... <mailto:markuz@...>
>     markuz@... <mailto:markuz@...>
>     marco.islas@... <mailto:marco.islas@...>
>     islacruz@... <mailto:islacruz@...>
>     http://www.islascruz.org
>     http://wwww.christine-project.org
>     http://www.linuxpozarica.com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> pygtk mailing list   pygtk@...
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

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

Re: Stock Icons with no Image

by Timothy Ulusoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks a lot, Timo.

I will dig into gconf-editor this evening to find out the treasure, and let you know about the outcome.


On Wed, Nov 4, 2009 at 1:16 PM, Timo <timomlists@...> wrote:
Search a bit in gconf-editor. There is a key you can set back to True to let the stock icons show.

Timo


Timothy Ulusoy schreef:
Then this is a case of "it's not a bug, it's a feature!"

Is there any document relating to this decision of the developers, that you can direct me to?

Thanks a lot.

On Tue, Nov 3, 2009 at 10:23 PM, Marco Antonio Islas Cruz <markuz@... <mailto:markuz@...>> wrote:

   Actually it is not a problem, developers wanted to behave like that.

   On Tue, 2009-11-03 at 22:08 +0200, Timothy Ulusoy wrote:
   > Thank you Marco,
   >
   > Now at least I know that it is a general problem, and it is not only
   > my system that fails. :)
   >
   >
   >
   > On Tue, Nov 3, 2009 at 9:56 PM, Marco Antonio Islas Cruz
   > <markuz@... <mailto:markuz@...>> wrote:
   >         On karmic, I can't remember if it is because of Gtk+ or
   GNOME
   >         there are
   >         no icons in stock buttons. You must use a custom button
   (with
   >         a hbox for
   >         example) with a gtk.Image and a gtk.Label.
   >
   >
   >
   >         On Tue, 2009-11-03 at 21:03 +0200, Timothy Ulusoy wrote:
   >         > Hello,
   >         >
   >         > I have a problem with stock items. When I try to show a
   >         button with
   >         > stock icon, I only see the text. For example, the
   following
   >         code from
   >         > Zetcode website only gives me the texts of the buttons (no
   >         images):
   >         >
   >         > import gtk
   >         >
   >         > class PyApp(gtk.Window):
   >         >     def __init__(self):
   >         >         super(PyApp, self).__init__()
   >         >
   >         >         self.set_title("Buttons")
   >         >         self.set_size_request(250, 200)
   >         >
   >         >         self.set_position(gtk.WIN_POS_CENTER)
   >         >
   >         >         btn1 = gtk.Button("Button")
   >         >         btn1.set_sensitive(False)
   >         >         btn2 = gtk.Button("Button")
   >         >         btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)
   >         >
   >         >         btn4 = gtk.Button("Button")
   >         >         btn4.set_size_request(80, 40)
   >         >
   >         >         fixed = gtk.Fixed()
   >         >
   >         >         fixed.put(btn1, 20, 30)
   >         >         fixed.put(btn2, 100, 30)
   >         >         fixed.put(btn3, 20, 80)
   >         >
   >         >         fixed.put(btn4, 100, 80)
   >         >
   >         >         self.connect("destroy", gtk.main_quit)
   >         >
   >         >         self.add(fixed)
   >         >         self.show_all()
   >         >
   >         >
   >         > PyApp()
   >         > gtk.main()
   >         >
   >         > I'm running Ubuntu Karmic Koala. Thinking that this may be
   >         related to
   >         > the GTK theme I use (Human theme), I tried the other
   themes,
   >         but to no
   >         > avail. Any comments will be much appreciated.
   >         >
   >         > Thanks.
   >         > Timothy
   >
   >         > _______________________________________________
   >         > pygtk mailing list   pygtk@...
   <mailto:pygtk@...>

   >         > http://www.daa.com.au/mailman/listinfo/pygtk
   >         > Read the PyGTK FAQ: http://faq.pygtk.org/
   >
   >
   >         --
   >         <--Linux... Because I'm Free-->
   >         Marco Antonio Islas Cruz
   >         "Markuz"
   >         Linux User #280229
   >         markuz@... <mailto:markuz@...>
   >         markuz@... <mailto:markuz@...>
   >         markuz@... <mailto:markuz@...>
   >         marco.islas@... <mailto:marco.islas@...>
   >         islacruz@... <mailto:islacruz@...>

   >         http://www.islascruz.org
   >         http://wwww.christine-project.org
   >         http://www.linuxpozarica.com
   >


   --
   <--Linux... Because I'm Free-->
   Marco Antonio Islas Cruz
   "Markuz"
   Linux User #280229
   markuz@... <mailto:markuz@...>
   markuz@... <mailto:markuz@...>
   markuz@... <mailto:markuz@...>
   marco.islas@... <mailto:marco.islas@...>
   islacruz@... <mailto:islacruz@...> ------------------------------------------------------------------------


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



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

Re: Stock Icons with no Image

by Pietro Battiston :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Il giorno mer, 04/11/2009 alle 12.16 +0100, Timo ha scritto:
> Search a bit in gconf-editor. There is a key you can set back to True to
> let the stock icons show.

/desktop/gnome/interface/{buttons_have_icons,menus_have_icons}

Pietro


--------------------------------------------------------------------------

This email would probably have arrived sooner if "reply" replied to the
mailing list I'm replying to.




>
> Timo
>
>
> Timothy Ulusoy schreef:
> > Then this is a case of "it's not a bug, it's a feature!"
> >
> > Is there any document relating to this decision of the developers,
> > that you can direct me to?
> >
> > Thanks a lot.
> >
> > On Tue, Nov 3, 2009 at 10:23 PM, Marco Antonio Islas Cruz
> > <markuz@... <mailto:markuz@...>> wrote:
> >
> >     Actually it is not a problem, developers wanted to behave like that.
> >
> >     On Tue, 2009-11-03 at 22:08 +0200, Timothy Ulusoy wrote:
> >     > Thank you Marco,
> >     >
> >     > Now at least I know that it is a general problem, and it is not only
> >     > my system that fails. :)
> >     >
> >     >
> >     >
> >     > On Tue, Nov 3, 2009 at 9:56 PM, Marco Antonio Islas Cruz
> >     > <markuz@... <mailto:markuz@...>> wrote:
> >     >         On karmic, I can't remember if it is because of Gtk+ or
> >     GNOME
> >     >         there are
> >     >         no icons in stock buttons. You must use a custom button
> >     (with
> >     >         a hbox for
> >     >         example) with a gtk.Image and a gtk.Label.
> >     >
> >     >
> >     >
> >     >         On Tue, 2009-11-03 at 21:03 +0200, Timothy Ulusoy wrote:
> >     >         > Hello,
> >     >         >
> >     >         > I have a problem with stock items. When I try to show a
> >     >         button with
> >     >         > stock icon, I only see the text. For example, the
> >     following
> >     >         code from
> >     >         > Zetcode website only gives me the texts of the buttons (no
> >     >         images):
> >     >         >
> >     >         > import gtk
> >     >         >
> >     >         > class PyApp(gtk.Window):
> >     >         >     def __init__(self):
> >     >         >         super(PyApp, self).__init__()
> >     >         >
> >     >         >         self.set_title("Buttons")
> >     >         >         self.set_size_request(250, 200)
> >     >         >
> >     >         >         self.set_position(gtk.WIN_POS_CENTER)
> >     >         >
> >     >         >         btn1 = gtk.Button("Button")
> >     >         >         btn1.set_sensitive(False)
> >     >         >         btn2 = gtk.Button("Button")
> >     >         >         btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)
> >     >         >
> >     >         >         btn4 = gtk.Button("Button")
> >     >         >         btn4.set_size_request(80, 40)
> >     >         >
> >     >         >         fixed = gtk.Fixed()
> >     >         >
> >     >         >         fixed.put(btn1, 20, 30)
> >     >         >         fixed.put(btn2, 100, 30)
> >     >         >         fixed.put(btn3, 20, 80)
> >     >         >
> >     >         >         fixed.put(btn4, 100, 80)
> >     >         >
> >     >         >         self.connect("destroy", gtk.main_quit)
> >     >         >
> >     >         >         self.add(fixed)
> >     >         >         self.show_all()
> >     >         >
> >     >         >
> >     >         > PyApp()
> >     >         > gtk.main()
> >     >         >
> >     >         > I'm running Ubuntu Karmic Koala. Thinking that this may be
> >     >         related to
> >     >         > the GTK theme I use (Human theme), I tried the other
> >     themes,
> >     >         but to no
> >     >         > avail. Any comments will be much appreciated.
> >     >         >
> >     >         > Thanks.
> >     >         > Timothy
> >     >
> >     >         > _______________________________________________
> >     >         > pygtk mailing list   pygtk@...
> >     <mailto:pygtk@...>
> >     >         > http://www.daa.com.au/mailman/listinfo/pygtk
> >     >         > Read the PyGTK FAQ: http://faq.pygtk.org/
> >     >
> >     >
> >     >         --
> >     >         <--Linux... Because I'm Free-->
> >     >         Marco Antonio Islas Cruz
> >     >         "Markuz"
> >     >         Linux User #280229
> >     >         markuz@... <mailto:markuz@...>
> >     >         markuz@... <mailto:markuz@...>
> >     >         markuz@... <mailto:markuz@...>
> >     >         marco.islas@... <mailto:marco.islas@...>
> >     >         islacruz@... <mailto:islacruz@...>
> >     >         http://www.islascruz.org
> >     >         http://wwww.christine-project.org
> >     >         http://www.linuxpozarica.com
> >     >
> >
> >
> >     --
> >     <--Linux... Because I'm Free-->
> >     Marco Antonio Islas Cruz
> >     "Markuz"
> >     Linux User #280229
> >     markuz@... <mailto:markuz@...>
> >     markuz@... <mailto:markuz@...>
> >     markuz@... <mailto:markuz@...>
> >     marco.islas@... <mailto:marco.islas@...>
> >     islacruz@... <mailto:islacruz@...>
> >     http://www.islascruz.org
> >     http://wwww.christine-project.org
> >     http://www.linuxpozarica.com
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > pygtk mailing list   pygtk@...
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ: http://faq.pygtk.org/
>
> _______________________________________________
> pygtk mailing list   pygtk@...
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/


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

Re: Stock Icons with no Image

by Timothy Ulusoy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Friends,

Thank you very much for pointing me to the right direction. Checking the related keys in gconf-editor made the stock icons appear in pygtk applications.

Have a nice day,
Timothy

On Wed, Nov 4, 2009 at 1:33 PM, Pietro Battiston <toobaz@...> wrote:
Il giorno mer, 04/11/2009 alle 12.16 +0100, Timo ha scritto:
> Search a bit in gconf-editor. There is a key you can set back to True to
> let the stock icons show.

/desktop/gnome/interface/{buttons_have_icons,menus_have_icons}

Pietro


--------------------------------------------------------------------------

This email would probably have arrived sooner if "reply" replied to the
mailing list I'm replying to.




>
> Timo
>
>
> Timothy Ulusoy schreef:
> > Then this is a case of "it's not a bug, it's a feature!"
> >
> > Is there any document relating to this decision of the developers,
> > that you can direct me to?
> >
> > Thanks a lot.
> >
> > On Tue, Nov 3, 2009 at 10:23 PM, Marco Antonio Islas Cruz
> > <markuz@... <mailto:markuz@...>> wrote:
> >
> >     Actually it is not a problem, developers wanted to behave like that.
> >
> >     On Tue, 2009-11-03 at 22:08 +0200, Timothy Ulusoy wrote:
> >     > Thank you Marco,
> >     >
> >     > Now at least I know that it is a general problem, and it is not only
> >     > my system that fails. :)
> >     >
> >     >
> >     >
> >     > On Tue, Nov 3, 2009 at 9:56 PM, Marco Antonio Islas Cruz
> >     > <markuz@... <mailto:markuz@...>> wrote:
> >     >         On karmic, I can't remember if it is because of Gtk+ or
> >     GNOME
> >     >         there are
> >     >         no icons in stock buttons. You must use a custom button
> >     (with
> >     >         a hbox for
> >     >         example) with a gtk.Image and a gtk.Label.
> >     >
> >     >
> >     >
> >     >         On Tue, 2009-11-03 at 21:03 +0200, Timothy Ulusoy wrote:
> >     >         > Hello,
> >     >         >
> >     >         > I have a problem with stock items. When I try to show a
> >     >         button with
> >     >         > stock icon, I only see the text. For example, the
> >     following
> >     >         code from
> >     >         > Zetcode website only gives me the texts of the buttons (no
> >     >         images):
> >     >         >
> >     >         > import gtk
> >     >         >
> >     >         > class PyApp(gtk.Window):
> >     >         >     def __init__(self):
> >     >         >         super(PyApp, self).__init__()
> >     >         >
> >     >         >         self.set_title("Buttons")
> >     >         >         self.set_size_request(250, 200)
> >     >         >
> >     >         >         self.set_position(gtk.WIN_POS_CENTER)
> >     >         >
> >     >         >         btn1 = gtk.Button("Button")
> >     >         >         btn1.set_sensitive(False)
> >     >         >         btn2 = gtk.Button("Button")
> >     >         >         btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)
> >     >         >
> >     >         >         btn4 = gtk.Button("Button")
> >     >         >         btn4.set_size_request(80, 40)
> >     >         >
> >     >         >         fixed = gtk.Fixed()
> >     >         >
> >     >         >         fixed.put(btn1, 20, 30)
> >     >         >         fixed.put(btn2, 100, 30)
> >     >         >         fixed.put(btn3, 20, 80)
> >     >         >
> >     >         >         fixed.put(btn4, 100, 80)
> >     >         >
> >     >         >         self.connect("destroy", gtk.main_quit)
> >     >         >
> >     >         >         self.add(fixed)
> >     >         >         self.show_all()
> >     >         >
> >     >         >
> >     >         > PyApp()
> >     >         > gtk.main()
> >     >         >
> >     >         > I'm running Ubuntu Karmic Koala. Thinking that this may be
> >     >         related to
> >     >         > the GTK theme I use (Human theme), I tried the other
> >     themes,
> >     >         but to no
> >     >         > avail. Any comments will be much appreciated.
> >     >         >
> >     >         > Thanks.
> >     >         > Timothy
> >     >
> >     >         > _______________________________________________
> >     >         > pygtk mailing list   pygtk@...
> >     <mailto:pygtk@...>
> >     >         > http://www.daa.com.au/mailman/listinfo/pygtk
> >     >         > Read the PyGTK FAQ: http://faq.pygtk.org/
> >     >
> >     >
> >     >         --
> >     >         <--Linux... Because I'm Free-->
> >     >         Marco Antonio Islas Cruz
> >     >         "Markuz"
> >     >         Linux User #280229
> >     >         markuz@... <mailto:markuz@...>
> >     >         markuz@... <mailto:markuz@...>
> >     >         markuz@... <mailto:markuz@...>
> >     >         marco.islas@... <mailto:marco.islas@...>
> >     >         islacruz@... <mailto:islacruz@...>
> >     >         http://www.islascruz.org
> >     >         http://wwww.christine-project.org
> >     >         http://www.linuxpozarica.com
> >     >
> >
> >
> >     --
> >     <--Linux... Because I'm Free-->
> >     Marco Antonio Islas Cruz
> >     "Markuz"
> >     Linux User #280229
> >     markuz@... <mailto:markuz@...>
> >     markuz@... <mailto:markuz@...>
> >     markuz@... <mailto:markuz@...>
> >     marco.islas@... <mailto:marco.islas@...>
> >     islacruz@... <mailto:islacruz@...>
> >     http://www.islascruz.org
> >     http://wwww.christine-project.org
> >     http://www.linuxpozarica.com
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > pygtk mailing list   pygtk@...
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ: http://faq.pygtk.org/
>
> _______________________________________________
> pygtk mailing list   pygtk@...
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/


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


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