A Qua, 2003-12-03 �s 10:26, Toon Verstraelen escreveu:
> Hi,
>
> I've made a small program that displays the periodic table of atomic
> elements in the form of a GTK.Table filled up with GTK.Button objects,
> based on an input file. The problem is that the minimumsize of the
> buttons is a bit to big and the window takes big part of my screen. I've
> noticed that there is a margin between the buttontext and the outer
> border of the button. I'd like to reduce the buttonsize without using
> smaller a font. Is it possible to reduce these margins?
No, you can't change these margins (unless, perhaps, if you make a new
gtk theme). You could perhaps use a smaller font for the buttons, like
this:
label = gtk.Label("<small>" + self.Elements.Symbols[i] + "</small>")
label.set_use_markup(True)
bu_element = gtk.ToggleButton()
bu_element.add(label)
>
> If you wish, you could download the program and inputfile:
> http://allserv.ugent.be/~tovrstra/mendeljev.tar.gz
>
> Using the gtk.SHRINK options when attaching the buttons doesn't seem to
> make them shrink when resizing the window. Is this the correct
> behaviour? If yes, what is the use of the gtk.SHRINK option?
>
> regards and thanks for looking at my problems,
>
> Toon
>
> P.S. I just started learning to program with GTK an PyGTK, so don't mind
> if I ask stupid questions.
>
> _______________________________________________
> pygtk mailing list [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
--
Gustavo Jo�o Alves Marques Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/