[pygtk] Re: howto create border around widget?
Steve McClure
smcclure at racemi.com
Mon Oct 15 21:06:22 WST 2007
On Oct 15, 2007, at 8:49 AM, Michael Baranov wrote:
> Hi!
>
> Some people suggested gtk.Frame in private, but it's not what I
> need: gtk.Frame is for visually "grouping" widgets, IMO. For
> example it looks it will never allow me to have, say, 2px-wide red
> border around a widget with 0px distance between the widget and the
> border.
The Frame has only one child therefore it can never group "widgets"
it can only decorate one widget. Try reading about styles and you
will find you can change the background color of the frame to red and
set the width of the frame to what you want. You can also set the
border, spacing etc.
>
> What are the options? Custom container? Thanks!
>
> Michael Baranov wrote:
>> Hi!
>>
>> Is there an easy way to create a decorative border around a widget
>> or a window? Like: plain n-pixel-wide, etched, sunken, raised,
>> beveled etc...
>>
>> Thanks!
>>
>
> --
> Michael Baranov
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
--
Steve McClure
smcclure at racemi.com
More information about the pygtk
mailing list