> I can't set the background either after our Red Hat was upgraded.
> Using the same wxPython version but now can't set the background of
> wxComboBox.
The new version of the GTK theme probably isn't allowing it. Try using
different themes.
--
Robin Dunn
Software Craftsman
http://wxPython.org
Yes.
On Mon, Nov 16, 2009 at 2:01 PM, Ron <ronnie.a....@lmco.com> wrote:
>
> Any other ideas then?
Yes, this is a wxWidgets bug (http://trac.wxwidgets.org/ticket/4753)
It appears to have been fixed for 2.9 since gtk will have a native
control implimentation there. However no fix appears to have been
applied to the 2.8 branch.
Cody
On Mon, Nov 16, 2009 at 4:16 PM, Ron <ronnie.a....@lmco.com> wrote:
>
> Thank you very much Cody. Does that mean we have to upgrade to
> wxPython 2.9 to fix this? Is there any easy work around? Or one
> easier than switching to a textfield and a button?
I slightly misread your original problem, what I described is in
regards to the themeing issue.
I can't remember for sure at the moment but if the combo box your
using is a composite control under gtk you should be able to iterate
through the list returned by GetChildren() to find the TextCtrl
instance and modify it directly. From your original description of it
only modifying the border around the text control it would lead me to
believe it is a composite control and the SetBackground is probably
only being called on the parent container control and not the TextCtrl
portion.
Cody
I'm trying to colour the item text in a wxRadioBox, so that I can
associate the items with some other coloured UI items. I was hoping
for something like
myRadioBox.SetItemForegroundColour(wx.BLUE, 0)
But I guess there isn't such a thing? Any suggestions how I could do
that?
My current guess is that I have to use separate wx.RadioButton's and
change their background colours.
As far as I can see, also, changing Foreground colour doesn't take on
wxRadioBox and only background colour can be changed.
Any hints are appreciated.
Regards,
Ross.
(Platform Mac OS X 10.4, python 2.5.2, wxPython 2.8.10.1)
> My current guess is that I have to use separate wx.RadioButton's and
> change their background colours.
Yes.