wxComboBox backgroundColour

The new version of the GTK theme probably isn't allowing it. Try using different themes.

···

On 11/13/09 8:24 AM, Ron wrote:

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.

--
Robin Dunn
Software Craftsman

I went to System/Preferences/Theme and tried every setting, but the
backgrounds for wxComboBox never changed even though other features of
the GUI did change. Is that what you are talking about?

Thanks,
Ron

···

On Nov 13, 12:52 pm, Robin Dunn <ro...@alldunn.com> wrote:

On 11/13/09 8:24 AM, Ron wrote:

> 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 Craftsmanhttp://wxPython.org

----------------------------------------
wxPython version: (2, 8, 6, 0, ' ')
Python version: 2.5.1
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
-----------------------------------------

Yes.

···

On 11/16/09 7:00 AM, Ron wrote:

On Nov 13, 12:52 pm, Robin Dunn<ro...@alldunn.com> wrote:

On 11/13/09 8:24 AM, Ron wrote:

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 Craftsmanhttp://wxPython.org

I went to System/Preferences/Theme and tried every setting, but the
backgrounds for wxComboBox never changed even though other features of
the GUI did change. Is that what you are talking about?

--
Robin Dunn
Software Craftsman

Any other ideas then?

Thanks,
Ron

···

----------------------------------------
wxPython version: (2, 8, 6, 0, ' ')
Python version: 2.5.1
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
-----------------------------------------

On Nov 16, 12:32 pm, Robin Dunn <ro...@alldunn.com> wrote:

On 11/16/09 7:00 AM, Ron wrote:

> On Nov 13, 12:52 pm, Robin Dunn<ro...@alldunn.com> wrote:
>> On 11/13/09 8:24 AM, Ron wrote:

>>> 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 Craftsmanhttp://wxPython.org

> I went to System/Preferences/Theme and tried every setting, but the
> backgrounds for wxComboBox never changed even though other features of
> the GUI did change. Is that what you are talking about?

Yes.

--
Robin Dunn
Software Craftsmanhttp://wxPython.org- Hide quoted text -

- Show quoted text -

Hi,

···

On Mon, Nov 16, 2009 at 2:01 PM, Ron <ronnie.a.shoemaker@lmco.com> wrote:

Any other ideas then?

Yes, this is a wxWidgets bug (wxTrac has been migrated to GitHub Issues - wxWidgets)
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

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?

···

On Nov 16, 2:06 pm, Cody Precord <codyprec...@gmail.com> wrote:

Hi,

On Mon, Nov 16, 2009 at 2:01 PM, Ron <ronnie.a.shoema...@lmco.com> wrote:

> Any other ideas then?

Yes, this is a wxWidgets bug (wxTrac has been migrated to GitHub Issues - wxWidgets)
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

Hi,

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

···

On Mon, Nov 16, 2009 at 4:16 PM, Ron <ronnie.a.shoemaker@lmco.com> wrote:

Thanks,

I'll try the GetChildren().

···

On Nov 16, 2:06 pm, Cody Precord <codyprec...@gmail.com> wrote:

Hi,

On Mon, Nov 16, 2009 at 2:01 PM, Ron <ronnie.a.shoema...@lmco.com> wrote:

> Any other ideas then?

Yes, this is a wxWidgets bug (wxTrac has been migrated to GitHub Issues - wxWidgets)
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

It has no children.

···

On Nov 16, 4:47 pm, Ron <ronnie.a.shoema...@lmco.com> wrote:

Thanks,

I'll try the GetChildren().

On Nov 16, 2:06 pm, Cody Precord <codyprec...@gmail.com> wrote:

> Hi,

> On Mon, Nov 16, 2009 at 2:01 PM, Ron <ronnie.a.shoema...@lmco.com> wrote:

> > Any other ideas then?

> Yes, this is a wxWidgets bug (wxTrac has been migrated to GitHub Issues - wxWidgets)
> 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- Hide quoted text -

- Show quoted text -

Hello all,

   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)

Ross wrote:

Hello all,

   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)

>

Try changing its font

font = radiobutton.GetFont()
font.SetColour("red")
radiobutton.SetFont(font)

Uh, disregard my last message; I didn't realise Fonts don't have a
colour attribute, sorry.

Yes.

···

On 11/25/09 11:55 AM, Ross wrote:

My current guess is that I have to use separate wx.RadioButton's and
change their background colours.

--
Robin Dunn
Software Craftsman