GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
prompt.TextCtrlAutoComplete Class Reference

Auto complete text area used by GPromptPopUp. More...

Inheritance diagram for prompt.TextCtrlAutoComplete:
Collaboration diagram for prompt.TextCtrlAutoComplete:

Public Member Functions

def __init__
 Constructor works just like wx.TextCtrl except you can pass in a list of choices. More...
def GetListCtrl
 Method required by listmix.ColumnSorterMixin. More...
def SetChoices
 Sets the choices available in the popup wx.ListBox. More...
def OnClick
def OnCommandSelect
 Command selected from history. More...
def OnListClick
 Left mouse button pressed. More...
def OnListDClick
 Mouse button double click. More...
def OnListColClick
 Left mouse button pressed on column. More...
def OnListItemSelected
 Item selected. More...
def OnEnteredText
 Text entered. More...
def OnKeyDown
 Do some work when the user press on the keys: up and down: move the cursor left and right: move the search. More...
def OnControlChanged
 Control changed. More...

Data Fields


Detailed Description

Auto complete text area used by GPromptPopUp.

Definition at line 47 of file

Constructor & Destructor Documentation

def prompt.TextCtrlAutoComplete.__init__ (   self,
  id = wx.ID_ANY,
  choices = [],

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.

Inspired by

Definition at line 50 of file

Member Function Documentation

def prompt.TextCtrlAutoComplete.GetListCtrl (   self)

Method required by listmix.ColumnSorterMixin.

Definition at line 250 of file

References prompt.TextCtrlAutoComplete.dropdownlistbox.

def prompt.TextCtrlAutoComplete.OnClick (   self,
Left mouse button pressed

Definition at line 285 of file

References prompt.TextCtrlAutoComplete._listItemVisible(), and prompt.TextCtrlAutoComplete._showDropDown().

def prompt.TextCtrlAutoComplete.OnCommandSelect (   self,
def prompt.TextCtrlAutoComplete.OnControlChanged (   self,

Control changed.

Definition at line 461 of file

References prompt.TextCtrlAutoComplete._showDropDown().

def prompt.TextCtrlAutoComplete.OnListClick (   self,

Left mouse button pressed.

Definition at line 303 of file

def prompt.TextCtrlAutoComplete.OnListColClick (   self,

Left mouse button pressed on column.

Definition at line 314 of file

References prompt.TextCtrlAutoComplete._ascending, and prompt.TextCtrlAutoComplete._colSearch.

def prompt.TextCtrlAutoComplete.OnListDClick (   self,

Mouse button double click.

Definition at line 310 of file

References prompt.TextCtrlAutoComplete._setValueFromSelected().

def prompt.TextCtrlAutoComplete.OnListItemSelected (   self,

Item selected.

Definition at line 324 of file

References prompt.TextCtrlAutoComplete._setValueFromSelected().

def prompt.TextCtrlAutoComplete.SetChoices (   self,
  type = 'module' 

Sets the choices available in the popup wx.ListBox.

The items will be sorted case insensitively.

choiceslist of choices
typetype of choices (module, param, flag, raster, vector)

Definition at line 254 of file

References prompt.TextCtrlAutoComplete._choices, prompt.TextCtrlAutoComplete._choiceType, prompt.TextCtrlAutoComplete._colFetch, prompt.TextCtrlAutoComplete._colSearch, prompt.TextCtrlAutoComplete._setListSize(), prompt.TextCtrlAutoComplete._updateDataList(), and utils.ListSortLower().

Referenced by prompt.TextCtrlAutoComplete.OnEnteredText().

Field Documentation


Definition at line 79 of file


Definition at line 85 of file

Referenced by prompt.TextCtrlAutoComplete.GetListCtrl().


Definition at line 141 of file


Definition at line 57 of file

The documentation for this class was generated from the following file: