[wxPython-users] wx.TextCtrl(): User Edits of Items
Robin Dunn
robin at alldunn.com
Thu Nov 2 20:44:04 PST 2006
Rich Shepard wrote:
> Section 15.8 of wPIA (pages 477-478) indicate that the wx.TR_EDIT_LABELS
> flag allows the user to edit the item on which the cursor is located in the
> tree. Pressing the [Esc] key cancels the changes while any other key
> accepts
> the changes.
>
> The inference is that I do not need to bind an event handler to obtain
> this functionality. Is this correct? If so, that's one less method to
> write.
Yes, although there are some events that you can bind that will let you
have some more control over the situation, such as whether to allow an
edit, or to validate the input.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list