Background colour inheritance and SetSizer

Hello Ben,

      on Windows, everything seems black to me... I don't see anything grey
or even dark grey on my screen. Maybe it's platform specific? Someone that
uses Debian may try the same and give you better answers...

If this does not work, I would do some ugly hack like:

# Obviously only the children you want
childrens = Frame.GetChildren()

color = Frame.GetBackgroundColour()

for child in children:
      child.SetBackgroundColour(color)

*Really* ugly, but it may work.

HTH.

Andrea.

···

_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it

Completed 29 August 2005 Internet Site:
http://xoomer.virgilio.it/infinity77/
____________________________________________________

Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale € 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453

I think it's not so much that it is platform-specific, but rather it
is GTK-specific. I have noticed that if I change the desktop theme,
the shade of grey always matches the grey from the theme. I have
tried various values for SetBackgroundStyle() and also
SetThemeEnabled(False), both on the frame and the panel itself, but
neither of these have an effect.

Ben

···

On 8/30/05, andrea.gavana@agip.it <andrea.gavana@agip.it> wrote:

      on Windows, everything seems black to me... I don't see anything grey
or even dark grey on my screen. Maybe it's platform specific? Someone that
uses Debian may try the same and give you better answers...