[wxPython-users] EditableListBox buttons

Robin Dunn robin at alldunn.com
Tue Mar 4 12:52:29 PST 2008


When you start a new topic in this list please do it by creating a new 
email, not replying to an existing one with a different subject.


L. Fanchi wrote:
> Hello,
> 
> I'm having problems disabling/removing the 'new' and 'edit' buttons of 
> my EditableListBox.
> Could someone explain how it works? This is what I have now:
> 
> /imageList = gizmos.EditableListBox(panel, -1, "Images", pos = (310,80), 
> size = (250, 330))/
> 

Pass a style parameter to the constructor using the flags for the 
buttons you want.  By default it is all of these:

     wx.gizmos.EL_ALLOW_NEW,
     wx.gizmos.EL_ALLOW_EDIT
     wx.gizmos.EL_ALLOW_DELETE


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list