Package peppy :: Package lib :: Module textctrl_autocomplete :: Class TextCtrlAutoComplete
[frames] | no frames]

Class TextCtrlAutoComplete

              object --+                    
                       |                    
         wx._core.Object --+                
                           |                
         wx._core.EvtHandler --+            
                               |            
                 wx._core.Window --+        
                                   |        
                    wx._core.Control --+    
                                       |    
                   wx._controls.TextCtrl --+
                                           |
wx.lib.mixins.listctrl.ColumnSorterMixin --+
                                           |
                                          TextCtrlAutoComplete

Instance Methods
EvtHandler
__init__(self, parent, colNames=None, choices=None, multiChoices=None, showHead=True, dropDownClick=True, colFetch=-1, colSearch=0, hideOnNoMatch=True, selectCallback=None, entryCallback=None, matchFunction=None, **therest)
Constructor works just like wx.TextCtrl except you can pass in a list of choices.
 
GetSortImages(self)
Returns a tuple of image list indexesthe indexes in the image list for an image to be put on the column header when sorting in descending order.
 
GetListCtrl(self)
 
onListClick(self, evt)
 
onListDClick(self, evt)
 
onListColClick(self, evt)
 
onEnteredText(self, event)
 
onKeyDown(self, event)
Do some work when the user press on the keys: up and down: move the cursor left and right: move the search
 
onListItemSelected(self, event)
 
onClickToggleDown(self, event)
 
onClickToggleUp(self, event)
 
onControlChanged(self, event)
 
SetMultipleChoices(self, choices, colSearch=0, colFetch=-1)
Set multi-column choice
 
SetChoices(self, choices)
Sets the choices available in the popup wx.ListBox.
 
GetChoices(self)
 
SetSelectCallback(self, cb=None)
 
SetEntryCallback(self, cb=None)
 
SetMatchFunction(self, mf=None)

Inherited from wx._controls.TextCtrl: AppendText, CanCopy, CanCut, CanPaste, CanRedo, CanUndo, ChangeValue, Clear, Copy, Create, Cut, DiscardEdits, EmulateKeyPress, GetDefaultStyle, GetInsertionPoint, GetLastPosition, GetLineLength, GetLineText, GetNumberOfLines, GetRange, GetSelection, GetString, GetStringSelection, GetStyle, GetValue, HitTest, HitTestPos, IsEditable, IsEmpty, IsModified, IsMultiLine, IsSingleLine, LoadFile, MacCheckSpelling, MarkDirty, Paste, PositionToXY, Redo, Remove, Replace, SaveFile, SelectAll, SendTextUpdatedEvent, SetDefaultStyle, SetEditable, SetInsertionPoint, SetInsertionPointEnd, SetMaxLength, SetModified, SetSelection, SetStyle, SetValue, ShowPosition, Undo, WriteText, XYToPosition, __repr__, write

Inherited from wx._core.Control: Command, GetAlignment, GetLabelText

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetGtkWidget, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SendSizeEvent, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.Object: GetClassName, IsSameAs

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Inherited from wx.lib.mixins.listctrl.ColumnSorterMixin: GetColumnSorter, GetColumnWidths, GetSecondarySortValues, OnSortOrderChanged, SetColumnCount, SortListItems

Static Methods

Inherited from wx._controls.TextCtrl: GetClassDefaultAttributes

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, NextControlId, PrevControlId

Properties

Inherited from wx._controls.TextCtrl: DefaultStyle, InsertionPoint, LastPosition, NumberOfLines, Selection, StringSelection, Value, thisown

Inherited from wx._core.Control: Alignment, LabelText

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, GtkWidget, Handle, HelpText, Id, Label, LayoutDirection, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

Method Details

__init__(self, parent, colNames=None, choices=None, multiChoices=None, showHead=True, dropDownClick=True, colFetch=-1, colSearch=0, hideOnNoMatch=True, selectCallback=None, entryCallback=None, matchFunction=None, **therest)
(Constructor)

 

Constructor works just like wx.TextCtrl except you can pass in a list of choices. You can also change the choice list at any time by calling setChoices.

Returns: EvtHandler
Overrides: wx.lib.mixins.listctrl.ColumnSorterMixin.__init__

GetSortImages(self)

 

Returns a tuple of image list indexesthe indexes in the image list for an image to be put on the column header when sorting in descending order.

Overrides: wx.lib.mixins.listctrl.ColumnSorterMixin.GetSortImages
(inherited documentation)

SetChoices(self, choices)

 

Sets the choices available in the popup wx.ListBox. The items will be sorted case insensitively.