GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Oct 21, 2014 12:02 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: pygtk button shrink to label?
PostPosted: Tue Dec 15, 2009 12:50 pm 
Offline
Familiar Face

Joined: Fri Nov 28, 2008 7:54 am
Posts: 38
Location: Italy, Milan
Hi,
I need to insert a button (gtk.Button) into the text (gtk.TextBuffer) so I would like the height of the button to match the height of its internal label (that is the same of the external text), but I can't find a way to obtain this result. Around the label there's always the button border and the text line with the button is almost 3 times higher than the others.
Anybody can help me?
I tried also the link button (gtk.LinkButton) but the result is the same as the only difference is that contains an uri.
Thanks in advance.

_________________
my projects:
http://giuspen.com/cherrytree
http://giuspen.com/x-tile
http://giuspen.com/nautilus-pyextensions


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 15, 2009 1:53 pm 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hello.

I don't think it's possible to scale the button down to text size since it needs some additional space to draw indicators.

What you can do to make it smaller than default is to modify some of button's style properties. A similar post about making button as small as possible is already posted on this forum here: http://gtkforums.com/viewtopic.php?t=4027.

Tadej


Top
 Profile  
 
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: Google [Bot], Google Adsense [Bot], Yahoo [Bot] and 6 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