Package wx :: Package lib :: Package masked :: Module combobox :: Class BaseMaskedComboBox

[frames | no frames]

## Type BaseMaskedComboBox

    object --+
             |
        Object --+
                 |
        EvtHandler --+
                     |
                Window --+
                         |
                   Control --+
                             |
                object --+   |
                         |   |
             ItemContainer --+
                             |
                      ComboBox --+
                                 |
               MaskedEditMixin --+
                                 |
                                BaseMaskedComboBox

Known Subclasses:
  `ComboBox`, `PreMaskedComboBox`

Base class for generic masked edit comboboxes; allows auto-complete of values. It is not meant to be instantiated directly, but rather serves as a base class for any subsequent refinements.

Method Summary
| `__init__(self, parent, id, value, pos, size, choices, style, validator, name, setupEventHandling, **kwargs)`
| `__repr__(self)`
| ``Append`(self, choice, clientData)` This base control function override is necessary so the control can keep track of any additions to the list of choices, because wx.ComboBox doesn't have an accessor for the choice list.
| ``AppendItems`(self, choices)` AppendItems() is handled in terms of Append, to avoid code replication.
| ``Clear`(self)` This base control function override is necessary so the derived control can keep track of any additions to the list of choices, because wx.ComboBox doesn't have an accessor for the choice list.
| ``Cut`(self)` This function redefines the externally accessible .Cut to be a smart "erase" of the text in question, so as not to corrupt the masked control.
| `GetMark(self)`
| `IsEmpty(*args, **kw)`
| ``Paste`(self)` This function redefines the externally accessible .Paste to be a smart "paste" of the text in question, so as not to corrupt the masked control.
| ``Refresh`(self)` This function redefines the externally accessible .Refresh() to validate the contents of the masked control as it refreshes.
| ``SetFont`(self, *args, **kwargs)` Set the font, then recalculate control size, if appropriate.
| ``SetSelection`(self, index)` Necessary override for bookkeeping on choice selection, to keep current value current.
| ``SetValue`(self, value)` This function redefines the externally accessible .SetValue to be a smart "paste" of the text in question, so as not to corrupt the masked control.
| ``Undo`(self)` This function defines the undo operation for the control.

Property Summary

Class Variable Summary

Instance Method Details

### Append(self, choice, clientData=None)

This base control function override is necessary so the control can keep track of any additions to the list of choices, because wx.ComboBox doesn't have an accessor for the choice list. The code here is the same as in the SetParameters() mixin function, but is done for the individual value as appended, so the list can be built incrementally without speed penalty.

  Overrides:
    `wx.ItemContainer.Append`

### AppendItems(self, choices)

AppendItems() is handled in terms of Append, to avoid code replication.

  Overrides:
    `wx.ItemContainer.AppendItems`

### Clear(self)

This base control function override is necessary so the derived control can keep track of any additions to the list of choices, because wx.ComboBox doesn't have an accessor for the choice list.

  Overrides:
    `wx.ItemContainer.Clear`

### Cut(self)

This function redefines the externally accessible .Cut to be a smart "erase" of the text in question, so as not to corrupt the masked control. NOTE: this must be done in the class derived from the base wx control.

  Overrides:
    `wx.ComboBox.Cut`

### Paste(self)

This function redefines the externally accessible .Paste to be a smart "paste" of the text in question, so as not to corrupt the masked control. NOTE: this must be done in the class derived from the base wx control.

  Overrides:
    `wx.ComboBox.Paste`

### Refresh(self)

This function redefines the externally accessible .Refresh() to validate the contents of the masked control as it refreshes. NOTE: this must be done in the class derived from the base wx control.

  Overrides:
    `wx.Window.Refresh`

### SetFont(self, *args, **kwargs)

Set the font, then recalculate control size, if appropriate.

  Overrides:
    `wx.Window.SetFont`

### SetSelection(self, index)

Necessary override for bookkeeping on choice selection, to keep current value current.

  Overrides:
    `wx.ItemContainer.SetSelection`

### SetValue(self, value)

This function redefines the externally accessible .SetValue to be a smart "paste" of the text in question, so as not to corrupt the masked control. NOTE: this must be done in the class derived from the base wx control.

  Overrides:
    `wx.ComboBox.SetValue`

### Undo(self)

This function defines the undo operation for the control. (The default undo is 1-deep.)

  Overrides:
    `wx.ComboBox.Undo`

Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:07:03 2007 | http://epydoc.sf.net