wx.lib.agw.ultimatelistctrl.UltimateListTextCtrl¶
Control used for in-place edit.
This is a subclass of ExpandoTextCtrl as UltimateListCtrl
supports multiline text items.
Note
To add a newline character in a multiline item, press Shift + Enter
as the Enter key alone is consumed by UltimateListCtrl to finish
the editing and Ctrl + Enter is consumed by the platform for tab navigation.
Class Hierarchy¶
Known Superclasses¶
wx.lib.expando.ExpandoTextCtrl
Methods Summary¶
Default class constructor. |
|
Accepts/refuses the changes made by the user. |
|
Finish editing. |
|
Handles the |
|
Handles the |
|
Handles the |
|
Suddenly stops the editing. |
Class API¶
- class UltimateListTextCtrl(ExpandoTextCtrl)¶
Control used for in-place edit.
This is a subclass of
ExpandoTextCtrlasUltimateListCtrlsupports multiline text items.Note
To add a newline character in a multiline item, press
Shift+Enteras theEnterkey alone is consumed byUltimateListCtrlto finish the editing andCtrl+Enteris consumed by the platform for tab navigation.
Methods¶
- __init__(self, owner, itemEdit)¶
Default class constructor. For internal use: do not call it in your code!
- Parameters:
owner – the control parent (an instance of
UltimateListCtrl);itemEdit – an instance of
UltimateListItem.
- AcceptChanges(self)¶
Accepts/refuses the changes made by the user.
- Finish(self)¶
Finish editing.
- OnChar(self, event)¶
Handles the
wx.EVT_CHARevent forUltimateListTextCtrl.- Parameters:
event – a
KeyEventevent to be processed.
- OnKeyUp(self, event)¶
Handles the
wx.EVT_KEY_UPevent forUltimateListTextCtrl.- Parameters:
event – a
KeyEventevent to be processed.
- OnKillFocus(self, event)¶
Handles the
wx.EVT_KILL_FOCUSevent forUltimateListTextCtrl.- Parameters:
event – a
FocusEventevent to be processed.
- StopEditing(self)¶
Suddenly stops the editing.