Specifying a border (BORDER_SUNKEN) for a Control

Hi all!

I want my Controls (Button, StaticText, etc) to have a BORDER_SUNKEN
type border. But specifying 'style = wx.BORDER_SUNKEN' does not seem
to have any effect. That is, the control doesn't have a border.

This is what I am doing -
addButton = wx.Button(window, 1, 'Add File', style= wx.BORDER_SUNKEN)

Please help. I am on Ubuntu 10.04.

Regards,
Tapti Palit.

Hi,

ยทยทยท

On Tue, Dec 21, 2010 at 8:44 PM, Tapti Palit <tapti.palit.in@gmail.com> wrote:

Hi all!

I want my Controls (Button, StaticText, etc) to have a BORDER_SUNKEN
type border. But specifying 'style = wx.BORDER_SUNKEN' does not seem
to have any effect. That is, the control doesn't have a border.

This is what I am doing -
addButton = wx.Button(window, 1, 'Add File', style= wx.BORDER_SUNKEN)

Please help. I am on Ubuntu 10.04.

Your systems theme may not allow that style to be set or may just be
ignoring it. This behavior can vary greatly on Linux depending upon
what gtk theme is being used.

You may want to try the generic versions of the controls instead if
you want to force a behavior. (i.e wx.lib.buttons, )

Cody