TextCtrlAutoComplete — Phatch v0.2 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- other »
- pyWx »

# TextCtrlAutoComplete

wxPython Custom Widget Collection 20060207 Written By: Edward Flick (eddy -=at=- cdf-imaging -=dot=- com)

> Michele Petrazzo (michele -=dot=- petrazzo -=at=- unipex -=dot=- it) Will Sadkin (wsadkin-=at=- nameconnector -=dot=- com)

Copyright 2006 (c) CDF Inc. ( http://www.cdf-imaging.com ) Contributed to the wxPython project under the wxPython project’s license.

This was slightly adapted by Stani for Phatch: - disable the parent event binding - change styles of the popup and listctrl

class `other.pyWx.TextCtrlAutoComplete.` `TextCtrlAutoComplete`(parent, colNames=None, choices=None, multiChoices=None, showHead=True, dropDownClick=True, colFetch=-1, colSearch=0, hideOnNoMatch=True, selectCallback=None, entryCallback=None, matchFunction=None, **therest)

  Bases: `wx._controls.TextCtrl`, `wx.lib.mixins.listctrl.ColumnSorterMixin`

  `GetChoices`()
  `GetListCtrl`()
  `GetSortImages`()
  `SetChoices`(choices)
    Sets the choices available in the popup wx.ListBox. The items will be sorted case insensitively.
  `SetEntryCallback`(cb=None)
  `SetMatchFunction`(mf=None)
  `SetMultipleChoices`(choices, colSearch=0, colFetch=-1)
    Set multi-column choice
  `SetSelectCallback`(cb=None)
  `onClickToggleDown`(event)
  `onClickToggleUp`(event)
  `onControlChanged`(event)
  `onEnteredText`(event)
  `onKeyDown`(event)
    Do some work when the user press on the keys: up and down: move the cursor left and right: move the search
  `onListClick`(evt)
  `onListColClick`(evt)
  `onListDClick`(evt)
  `onListItemSelected`(event)

`other.pyWx.TextCtrlAutoComplete.` `getSmallDnArrowBitmap`()

`other.pyWx.TextCtrlAutoComplete.` `getSmallDnArrowData`()

`other.pyWx.TextCtrlAutoComplete.` `getSmallDnArrowImage`()

`other.pyWx.TextCtrlAutoComplete.` `getSmallUpArrowBitmap`()

`other.pyWx.TextCtrlAutoComplete.` `getSmallUpArrowData`()

`other.pyWx.TextCtrlAutoComplete.` `getSmallUpArrowImage`()

class `other.pyWx.TextCtrlAutoComplete.` `myListCtrl`(parent, ID=-1, pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=0)
  Bases: `wx._controls.ListCtrl`, `wx.lib.mixins.listctrl.ListCtrlAutoWidthMixin`

class `other.pyWx.TextCtrlAutoComplete.` `test`
  `match`(text, choice)
    Demonstrate “smart” matching feature, by ignoring http:// and www. when doing matches.
  `onBtChangeChoice`(event)
  `onBtDynamicChoices`(event)
    Demonstrate dynamic adjustment of the auto-complete list, based on what’s been typed so far:
  `onBtMultiChoice`(event)
  `onBtStartChoices`(event)
  `selectCallback`(values)
    Simply function that receive the row values when the user select an item
  `setDynamicChoices`()

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- other »
- pyWx »