I'm trying to create a sunken listbox using a style like
wx.SUNKEN_BORDER, but it doesn't work. The only way I can get a sunken
appearance is to put the listbox in a panel, and give the panel the
wx.SUNKEN_BORDER style. It's not just sunken that is the problem --
all border styles seem to be ignored.
Is this expected behavior? And if so, where is it documented? I'm
using wxPython 2.8.11.0 (gtk2-unicode)
Not necessarily expected, but not unexpected either. The native widgets and/or the active theme are able to either honor or ignore the generic requests that are made of it for things like setting colors, borders, fonts, etc., and wx can't really do anything about it. That is one of the costs (or benefits, depending on your perspective) of using native widgets in a UI toolkit.
···
On 12/8/10 1:47 PM, Bryan Oakley wrote:
I'm trying to create a sunken listbox using a style like
wx.SUNKEN_BORDER, but it doesn't work. The only way I can get a sunken
appearance is to put the listbox in a panel, and give the panel the
wx.SUNKEN_BORDER style. It's not just sunken that is the problem --
all border styles seem to be ignored.
Is this expected behavior? And if so, where is it documented? I'm
using wxPython 2.8.11.0 (gtk2-unicode)
On Wed, Dec 8, 2010 at 6:06 PM, Robin Dunn <robin@alldunn.com> wrote:
On 12/8/10 1:47 PM, Bryan Oakley wrote:
I'm trying to create a sunken listbox using a style like
wx.SUNKEN_BORDER, but it doesn't work. The only way I can get a sunken
appearance is to put the listbox in a panel, and give the panel the
wx.SUNKEN_BORDER style. It's not just sunken that is the problem --
all border styles seem to be ignored.
Is this expected behavior? And if so, where is it documented? I'm
using wxPython 2.8.11.0 (gtk2-unicode)
Not necessarily expected, but not unexpected either. The native widgets
and/or the active theme are able to either honor or ignore the generic
requests that are made of it for things like setting colors, borders, fonts,
etc., and wx can't really do anything about it. That is one of the costs
(or benefits, depending on your perspective) of using native widgets in a UI
toolkit.