Hello Dick,
if I open the wxPython demo, under "Custom Controls --> TreeListCtrl"
and I put something like:
self.tree.SetBackgroundColour(wx.RED)
My TreeListCtrl has a RED background colour. So I don't see where the
problem may be in your case. On which platform are you on? Python version?
Here is working, on Windows 2000, Python 2.4.1 and wxPython 2.6.1.0.
If you want to set the background colour equal to the TreeListCtrl parent
background colour, you can do something like:
self.tree.SetBackgroundColour(self.tree.GetParent().GetBackgroundColour())
Also, if you are migrating your application to 2.6, why are you still using
the *old* namespace? Why don't you use "wx.Something" instead of
"wxSomething"? I would not convert 1 line of my app without having
previously changed the namespace accordingly.
Just a thought.
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
Restyled 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