GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Aug 28, 2016 2:12 am

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: imagebuttons with pygobject
PostPosted: Tue Nov 08, 2011 9:46 pm 
GTK+ Geek

Joined: Mon Jan 05, 2009 9:37 am
Posts: 68
Location: Austria
Hi All,

As Tadej pointed out in a previous post, glade-3.10 should be used with pygobject. In the past with glade-3.8, and pygtk, when I wanted to have a button with an image, I could write this at the beginning of the code
   settings = gtk.settings_get_default()
   settings.props.gtk_button_images = True

and that made sure that even if the system-wide settings did not specify the button images, the particular code still showed them. Is there a similar trick in pygobject?

 Post subject: Re: imagebuttons with pygobject
PostPosted: Thu Jan 19, 2012 1:11 pm 
Familiar Face

Joined: Mon Jan 16, 2012 5:10 pm
Posts: 11
My friend, do not speak English, but I translate your question to the google translator.
first remember that in pygobject wrote the first letter capitalized and used a point. then:
settings = Gtk.Settings.get_default()
settings.props.gtk_button_images = True

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group