Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Import alias Import alias Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Global identifier If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Return NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad keyword Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad keyword Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad keyword BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str ListLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignBitOr NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse AugAssignBitOr NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str For NameStore AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr keyword AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr handlers ExceptHandler type NameLoad body Pass For NameStore AttributeLoad NameLoad attr body TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareNotEq Call AttributeLoad NameLoad attr Num CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return If CompareIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr orelse Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BoolOpOr NameLoad Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice If CompareNotIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad NameLoad keyword BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr BoolOpOr NameLoad ListLoad Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr If BoolOpAnd Call NameLoad AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Return If CompareNotEq Call NameLoad Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Break decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad NameLoad decorator_list decorator_list
N/A N/A 
The *CellEditor* module provides some editors for standard types that can be installed
in an *ObjectListView*. It also provides a *Registry* that maps between standard types
and functions that will create editors for that type.

Cell Editors

    A cell editor can be any subclass of wx.Window provided that it supports the
    following protocol:

    SetValue(self, value)
        The editor should show the given value for editing

    GetValue(self)
        The editor should return the value that it holds. Return None to indicate
        an invalid value. The returned value should be of the correct type, i.e.
        don't return a string if the editor was registered for the bool type.

    The editor should invoke FinishCellEdit() on its parent ObjectListView when it
    loses focus or when the user commits the change by pressing Return or Enter.

    The editor should invoke CancelCellEdit() on its parent ObjectListView when
    the user presses Escape.

Editor Registry

    The editor registry remembers a function that will be called to create
    an editor for a given type.
 N/A __author__ Phillip Piper N/A __date__ 3 May 2008 N/A __version__ 1.0 N/A datetime N/A wx N/A _cellEditorRegistrySingleton None CellEditorRegistry N/A N/A N/A N/A N/A 
    Return the registry that is managing type to creator functions
     N/A _cellEditorRegistrySingleton N/A N/A _cellEditorRegistrySingleton None N/A N/A _cellEditorRegistrySingleton N/A EditorRegistry N/A _cellEditorRegistrySingleton N/A EditorRegistry N/A N/A N/A 
    An *EditorRegistry* manages a mapping of types onto creator functions.

    When called, creator functions will create the appropriate kind of cell editor
     __init__ N/A N/A self N/A N/A N/A N/A self typeToFunctionMap N/A N/A N/A N/A self typeToFunctionMap N/A str N/A self _MakeStringEditor N/A N/A N/A self typeToFunctionMap N/A unicode N/A self _MakeStringEditor N/A N/A N/A self typeToFunctionMap N/A bool N/A self _MakeBoolEditor N/A N/A N/A self typeToFunctionMap N/A int N/A self _MakeIntegerEditor N/A N/A N/A self typeToFunctionMap N/A long N/A self _MakeLongEditor N/A N/A N/A self typeToFunctionMap N/A float N/A self _MakeFloatEditor N/A N/A N/A self typeToFunctionMap N/A N/A datetime datetime N/A self _MakeDateTimeEditor N/A N/A N/A self typeToFunctionMap N/A N/A datetime date N/A self _MakeDateEditor N/A N/A N/A self typeToFunctionMap N/A N/A datetime time N/A self _MakeTimeEditor N/A GetCreatorFunction N/A N/A self aValue N/A N/A N/A 
        Return the creator function that is register for the type of the given value.
        Return None if there is no registered function for the type.
         N/A N/A N/A N/A self typeToFunctionMap get N/A type aValue None N/A RegisterCreatorFunction N/A N/A self aType aFunction N/A N/A N/A 
        Register the given function to be called when we need an editor for the given type.

        The function must accept three parameter: an ObjectListView, row index, and subitem index.
        It should return a wxWindow that is parented on the listview, and that responds to:

           - SetValue(newValue)

           - GetValue() to return the value shown in the editor

         N/A N/A N/A self typeToFunctionMap N/A aType aFunction N/A _MakeStringEditor N/A N/A olv rowIndex subItemIndex N/A N/A N/A N/A BaseCellTextEditor olv subItemIndex N/A staticmethod _MakeBoolEditor N/A N/A olv rowIndex subItemIndex N/A N/A N/A N/A BooleanEditor olv N/A staticmethod _MakeIntegerEditor N/A N/A olv rowIndex subItemIndex N/A N/A N/A N/A IntEditor olv subItemIndex validator N/A NumericValidator N/A staticmethod _MakeLongEditor N/A N/A olv rowIndex subItemIndex N/A N/A N/A N/A LongEditor olv subItemIndex N/A staticmethod _MakeFloatEditor N/A N/A olv rowIndex subItemIndex N/A N/A N/A N/A FloatEditor olv subItemIndex validator N/A NumericValidator 0123456789-+eE. N/A staticmethod _MakeDateTimeEditor N/A N/A olv rowIndex subItemIndex N/A N/A N/A dte N/A DateTimeEditor olv subItemIndex N/A column N/A N/A olv columns N/A subItemIndex N/A N/A isinstance N/A column stringConverter basestring N/A N/A N/A dte formatString N/A column stringConverter N/A dte N/A staticmethod _MakeDateEditor N/A N/A olv rowIndex subItemIndex N/A N/A N/A dte N/A DateEditor olv style N/A N/A N/A wx DP_DROPDOWN N/A wx DP_SHOWCENTURY N/A wx WANTS_CHARS N/A dte N/A staticmethod _MakeTimeEditor N/A N/A olv rowIndex subItemIndex N/A N/A N/A editor N/A TimeEditor olv subItemIndex N/A column N/A N/A olv columns N/A subItemIndex N/A N/A isinstance N/A column stringConverter basestring N/A N/A N/A editor formatString N/A column stringConverter N/A editor N/A staticmethod N/A BooleanEditor N/A N/A wx Choice N/A N/A This is a simple editor to edit a boolean value that can be used in an
    ObjectListView __init__ N/A N/A self N/A args kwargs N/A N/A N/A kwargs N/A choices N/A True False N/A N/A N/A N/A wx Choice __init__ self args kwargs N/A GetValue N/A N/A self N/A N/A N/A Get the value from the editor N/A N/A N/A N/A self GetSelection 0 N/A SetValue N/A N/A self value N/A N/A N/A Put a new value into the editor N/A value N/A N/A N/A N/A self Select 0 N/A N/A N/A N/A self Select 1 N/A N/A BaseCellTextEditor N/A N/A wx TextCtrl N/A N/A This is a base text editor for text-like editors used in an ObjectListView __init__ N/A N/A self olv subItemIndex N/A kwargs N/A N/A style N/A N/A wx TE_PROCESS_ENTER N/A wx TE_PROCESS_TAB N/A N/A hasattr olv columns N/A N/A N/A N/A olv HasFlag N/A wx LC_ICON N/A N/A style N/A N/A wx TE_CENTRE N/A wx TE_MULTILINE N/A N/A style N/A N/A N/A N/A olv columns N/A subItemIndex GetAlignmentForText N/A N/A N/A N/A wx TextCtrl __init__ self olv style style kwargs N/A N/A IntEditor N/A BaseCellTextEditor N/A N/A This is a text editor for integers for use in an ObjectListView GetValue N/A N/A self N/A N/A N/A Get the value from the editor N/A s N/A N/A N/A N/A N/A wx TextCtrl GetValue self strip N/A N/A N/A N/A int s N/A N/A N/A ValueError N/A N/A None N/A SetValue N/A N/A self value N/A N/A N/A Put a new value into the editor N/A N/A isinstance value int N/A N/A value N/A repr value N/A N/A N/A N/A wx TextCtrl SetValue self value N/A N/A LongEditor N/A BaseCellTextEditor N/A N/A This is a text editor for long values for use in an ObjectListView GetValue N/A N/A self N/A N/A N/A Get the value from the editor N/A s N/A N/A N/A N/A N/A wx TextCtrl GetValue self strip N/A N/A N/A N/A long s N/A N/A N/A ValueError N/A N/A None N/A SetValue N/A N/A self value N/A N/A N/A Put a new value into the editor N/A N/A isinstance value long N/A N/A value N/A repr value N/A N/A N/A N/A wx TextCtrl SetValue self value N/A N/A FloatEditor N/A BaseCellTextEditor N/A N/A This is a text editor for floats for use in an ObjectListView.

    Because of the trouble of precisely converting floats to strings,
    this editor sometimes behaves a little strangely. GetValue N/A N/A self N/A N/A N/A Get the value from the editor N/A s N/A N/A N/A N/A N/A wx TextCtrl GetValue self strip N/A N/A N/A N/A float s N/A N/A N/A ValueError N/A N/A None N/A SetValue N/A N/A self value N/A N/A N/A Put a new value into the editor N/A N/A isinstance value float N/A N/A value N/A repr value N/A N/A N/A N/A wx TextCtrl SetValue self value N/A N/A DateTimeEditor N/A BaseCellTextEditor N/A N/A 
    A DateTimeEditor allows the user to enter a date/time combination, where the time is optional
    and many formats of date and time are allowed.

    The control accepts these date formats (in all cases, the year can be only 2 digits):
      - '31/12/2008'
      - '2008/12/31'
      - '12/31/2008'
      - '31 December 2008'
      - '31 Dec 2008'
      - 'Dec 31 2008'
      - 'December 31 2008'

    Slash character can also be '-' or ' '. Consecutive whitespace are collapsed.

    The control accepts these time formats:
      - '23:59:59'
      - '11:59:59pm'
      - '23:59'
      - '11:59pm'
      - '11pm'

    The colons are required. The am/pm is case insensitive.

    The implementation uses a brute force approach to parsing the data.
     N/A STD_DATE_FORMATS N/A %d %m %Y %Y %m %d %m %d %Y %d %B %Y %d %b %Y %b %d %Y %B %d %Y %d %m %y %y %m %d %m %d %y %d %B %y %d %b %y %b %d %y %B %d %y N/A STD_DATE_WITHOUT_YEAR_FORMATS N/A %d %m %m %d %d %B %d %b %B %d %b %d N/A STD_TIME_FORMATS N/A %H:%M:%S %I:%M:%S %p %H:%M %I:%M %p %I %p N/A STD_SEPARATORS /-, __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A BaseCellTextEditor __init__ self args kwargs N/A N/A self formatString %X %x N/A N/A self allDateTimeFormats N/A N/A dtFmt N/A self STD_DATE_FORMATS N/A N/A N/A N/A N/A self allDateTimeFormats append dtFmt N/A timeFmt N/A self STD_TIME_FORMATS N/A N/A N/A N/A N/A self allDateTimeFormats append N/A %s %s N/A dtFmt timeFmt N/A N/A self allDateTimeWithoutYearFormats N/A N/A dtFmt N/A self STD_DATE_WITHOUT_YEAR_FORMATS N/A N/A N/A N/A N/A self allDateTimeWithoutYearFormats append dtFmt N/A timeFmt N/A self STD_TIME_FORMATS N/A N/A N/A N/A N/A self allDateTimeWithoutYearFormats append N/A %s %s N/A dtFmt timeFmt N/A SetValue N/A N/A self value N/A N/A N/A Put a new value into the editor N/A N/A isinstance value N/A datetime datetime N/A N/A value N/A N/A value strftime N/A self formatString N/A N/A N/A N/A wx TextCtrl SetValue self value N/A GetValue N/A N/A self N/A N/A N/A Get the value from the editor N/A s N/A N/A N/A N/A N/A wx TextCtrl GetValue self strip N/A N/A N/A self _ParseDateTime s N/A _ParseDateTime N/A N/A self s N/A N/A N/A N/A N/A N/A N/A N/A datetime datetime strptime s N/A self formatString N/A N/A N/A ValueError N/A N/A N/A x N/A self STD_SEPARATORS N/A N/A s N/A N/A s replace x N/A fmt N/A self allDateTimeWithoutYearFormats N/A N/A N/A N/A dt N/A N/A N/A datetime datetime strptime s fmt N/A N/A N/A dt replace year N/A N/A N/A N/A datetime datetime today year N/A N/A N/A ValueError N/A N/A N/A fmt N/A self allDateTimeFormats N/A N/A N/A N/A N/A N/A N/A datetime datetime strptime s fmt N/A N/A N/A ValueError N/A N/A N/A None N/A N/A NumericValidator N/A N/A wx PyValidator N/A N/A This validator only accepts numeric keys __init__ N/A N/A self acceptableChars N/A 0123456789+- N/A N/A N/A N/A N/A wx PyValidator __init__ self N/A N/A N/A self Bind N/A wx EVT_CHAR N/A self _OnChar N/A N/A self acceptableChars acceptableChars N/A N/A self acceptableCodes N/A N/A ord x N/A x N/A self acceptableChars N/A stdEditKeys N/A N/A wx WXK_RETURN N/A wx WXK_NUMPAD_ENTER N/A wx WXK_ESCAPE N/A wx WXK_CANCEL N/A wx WXK_TAB N/A wx WXK_BACK N/A wx WXK_DELETE N/A wx WXK_HOME N/A wx WXK_END N/A wx WXK_LEFT N/A wx WXK_RIGHT N/A N/A N/A N/A self acceptableCodes extend stdEditKeys N/A Clone N/A N/A self N/A N/A N/A Make a new copy of this validator N/A N/A NumericValidator N/A self acceptableChars N/A _OnChar N/A N/A self event N/A N/A N/A Handle the OnChar event by rejecting non-numerics N/A N/A N/A N/A N/A event GetModifiers 0 N/A N/A N/A event GetModifiers N/A wx MOD_SHIFT N/A N/A N/A N/A event Skip N/A N/A N/A N/A N/A event GetKeyCode N/A self acceptableCodes N/A N/A N/A N/A event Skip N/A N/A N/A N/A wx Bell N/A N/A DateEditor N/A N/A wx DatePickerCtrl N/A N/A 
    This control uses standard datetime.
    wx.DatePickerCtrl works only with wx.DateTime, but they are strange beasts.
    wx.DataTime use 0 indexed months, i.e. January==0 and December==11.
     __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A wx DatePickerCtrl __init__ self args kwargs N/A N/A N/A self SetValue None N/A SetValue N/A N/A self value N/A N/A N/A value N/A N/A dt N/A N/A wx DateTime N/A N/A N/A dt Set N/A value day N/A N/A value month 1 N/A value year N/A N/A dt N/A N/A N/A wx DateTime Today N/A N/A N/A N/A wx DatePickerCtrl SetValue self dt N/A GetValue N/A N/A self N/A N/A N/A Get the value from the editor N/A dt N/A N/A N/A wx DatePickerCtrl GetValue self N/A N/A N/A dt IsOk N/A N/A N/A N/A datetime date N/A dt Year N/A N/A dt Month 1 N/A dt Day N/A N/A None N/A N/A TimeEditor N/A BaseCellTextEditor N/A N/A A text editor that expects and return time values N/A STD_TIME_FORMATS N/A %X %H:%M %I:%M %p %I %p __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A BaseCellTextEditor __init__ self args kwargs N/A N/A self formatString %X N/A SetValue N/A N/A self value N/A N/A N/A Put a new value into the editor N/A value N/A value N/A N/A isinstance value N/A datetime time N/A N/A value N/A N/A value strftime N/A self formatString N/A N/A N/A N/A wx TextCtrl SetValue self value N/A GetValue N/A N/A self N/A N/A N/A Get the value from the editor N/A s N/A N/A N/A N/A N/A wx TextCtrl GetValue self strip N/A fmts N/A N/A self STD_TIME_FORMATS N/A N/A N/A N/A self formatString fmts N/A N/A N/A N/A fmts insert 0 N/A self formatString N/A fmt fmts N/A N/A N/A N/A dt N/A N/A N/A datetime datetime strptime s fmt N/A N/A N/A dt time N/A N/A N/A ValueError N/A N/A N/A None N/A N/A MakeAutoCompleteTextBox N/A N/A olv columnIndex maxObjectsToConsider N/A 10000 N/A N/A 
    Return a TextCtrl that lets the user choose from all existing values in this column.
    Do not call for large lists
     N/A col N/A N/A olv columns N/A columnIndex N/A maxObjectsToConsider N/A min maxObjectsToConsider N/A N/A olv GetItemCount N/A options N/A set N/A N/A N/A col GetStringValue N/A N/A olv GetObjectAt i N/A i N/A range maxObjectsToConsider N/A tb N/A BaseCellTextEditor olv columnIndex N/A N/A AutoCompleteHelper tb N/A list options N/A tb N/A MakeAutoCompleteComboBox N/A N/A olv columnIndex maxObjectsToConsider N/A 10000 N/A N/A 
    Return a ComboBox that lets the user choose from all existing values in this column.
    Do not call for large lists
     N/A col N/A N/A olv columns N/A columnIndex N/A maxObjectsToConsider N/A min maxObjectsToConsider N/A N/A olv GetItemCount N/A options N/A set N/A N/A N/A col GetStringValue N/A N/A olv GetObjectAt i N/A i N/A range maxObjectsToConsider N/A cb N/A N/A wx ComboBox olv choices N/A list options style N/A N/A N/A wx CB_DROPDOWN N/A wx CB_SORT N/A wx TE_PROCESS_ENTER N/A N/A AutoCompleteHelper cb N/A cb N/A AutoCompleteHelper N/A object N/A N/A 
    This class operates on a text control or combobox, and automatically completes the
    text typed by the user from a list of entries in a given list.

     __init__ N/A N/A self control possibleValues N/A None N/A N/A N/A self control control N/A N/A self lastUserEnteredString N/A N/A N/A self control GetValue N/A N/A N/A N/A self control Bind N/A wx EVT_TEXT N/A self _OnTextEvent N/A N/A isinstance N/A self control N/A wx ComboBox N/A N/A N/A self possibleValues N/A N/A N/A self control GetStrings N/A N/A N/A self possibleValues N/A possibleValues N/A N/A N/A self lowerCasePossibleValues N/A N/A N/A x lower N/A x N/A self possibleValues N/A _OnTextEvent N/A N/A self evt N/A N/A N/A N/A N/A evt Skip N/A N/A N/A hasattr N/A self control IsModified N/A N/A N/A N/A self control IsModified N/A N/A N/A N/A N/A len N/A N/A evt GetString N/A N/A len N/A self lastUserEnteredString 1 N/A N/A N/A self lastUserEnteredString N/A N/A evt GetString N/A N/A N/A self lastUserEnteredString N/A N/A evt GetString N/A s N/A N/A N/A N/A evt GetString lower N/A N/A i x N/A enumerate N/A self lowerCasePossibleValues N/A N/A N/A N/A x startswith s N/A N/A N/A N/A self _AutocompleteWith N/A N/A self possibleValues N/A i N/A N/A _AutocompleteWith N/A N/A self newValue N/A N/A N/A Suggest the given value by autocompleting it. N/A insertIndex N/A len N/A N/A N/A self control GetValue N/A N/A N/A N/A self control SetValue newValue N/A N/A isinstance N/A self control N/A wx ComboBox N/A N/A N/A N/A N/A self control SetMark insertIndex N/A len newValue N/A N/A N/A N/A wx CallAfter N/A N/A self control SetSelection insertIndex N/A len newValue N/A N/A