Disable button

Hi,

I try disable a bitmap button with self.bm_addsale.SetBitmapDisabled(wx.Bitmap("/Users/jyr/Desarrollo/git-projects/japos-client/img/toolbars/add.png", wx.BITMAP_TYPE_ANY)), but not works.

Any suggestions?

···


SIN ETIQUETAS.[ PUNTO ]
http://hi.im/jyr
http://www.opentumblr.com

Hi,

···

On Nov 10, 2009, at 12:35 AM, Jair Gaxiola wrote:

Hi,

I try disable a bitmap button with self.bm_addsale.SetBitmapDisabled(wx.Bitmap("/Users/jyr/Desarrollo/git-projects/japos-client/img/toolbars/add.png", wx.BITMAP_TYPE_ANY)), but not works.

Any suggestions?

That method is for setting the bitmap that the button will show when its disabled.

You can disable it just like any other control in wx, wx.BitmapButton.Enable(False) or wx.BitmapButton.Disable()

Cody

Thanks

···

On Tue, Nov 10, 2009 at 7:42 AM, Cody Precord codyprecord@gmail.com wrote:

Hi,

On Nov 10, 2009, at 12:35 AM, Jair Gaxiola wrote:

Hi,

I try disable a bitmap button with

self.bm_addsale.SetBitmapDisabled(wx.Bitmap("/Users/jyr/Desarrollo/

git-projects/japos-client/img/toolbars/add.png",

wx.BITMAP_TYPE_ANY)), but not works.

Any suggestions?

That method is for setting the bitmap that the button will show when

its disabled.

You can disable it just like any other control in wx,

wx.BitmapButton.Enable(False) or wx.BitmapButton.Disable()


SIN ETIQUETAS.[ PUNTO ]
http://hi.im/jyr
http://www.opentumblr.com