Setting fonts for ComboBox list items

Under Windows XP:
         wx.ComboBox.SetFont(newFont)
does what I expected (and what I want). Under Ubuntu Linux (10.10)
however it does nothing. Is this a known issue? Is there a work-
around?
Rob

Hi Rob,

Do you have the standard theme enabled in Ubuntu? I’ve heard odd things can happen in different themes. Otherwise, it may be that SetFont isn’t something that the native Ubuntu ComboBox allows. The workaround would be to use ComboCtrl or some other generic widget.

  • Mike

Yes, standard theme. Thanks Mike, Rob

···

On Apr 1, 3:40 am, Mike Driscoll <kyoso...@gmail.com> wrote:

Hi Rob,

Do you have the standard theme enabled in Ubuntu? I've heard odd things can
happen in different themes. Otherwise, it may be that SetFont isn't
something that the native Ubuntu ComboBox allows. The workaround would be to
use ComboCtrl or some other generic widget.

- Mike

It's probably a limitation of the GTK widget, or at least how wx is using it. Submit a Trac ticket about this issue and if it's possible to fix then it probably will be.

···

On 3/31/11 12:00 AM, RobS wrote:

Under Windows XP:
          wx.ComboBox.SetFont(newFont)
does what I expected (and what I want). Under Ubuntu Linux (10.10)
however it does nothing. Is this a known issue? Is there a work-
around?

--
Robin Dunn
Software Craftsman

Thanks Robin - I should have checked the Tracs first - it’s already been reported in #10566.
Sorry, Rob.