 
       wx.lib.masked.ipaddrctrl.IpAddrCtrl¶
  wx.lib.masked.ipaddrctrl.IpAddrCtrl¶This class is a particular type of MaskedTextCtrl that accepts and understands the semantics of IP addresses, reformats input as you move from field to field, and accepts ‘.’ as a navigation character, so that typing an IP address can be done naturally.
 Known Superclasses¶
 Known Superclasses¶wx.lib.masked.ipaddrctrl.IpAddrCtrlAccessorsMixin, wx.lib.masked.textctrl.BaseMaskedTextCtrl
 Methods Summary¶
 Methods Summary¶| __init__ | Default class constructor. | 
| GetAddress | Returns the control value, with any spaces removed. | 
| OnDot | Defines what action to take when the ‘.’ character is typed in the | 
| SetValue | Takes a string value, validates it for a valid IP address, | 
 Class API¶
 Class API¶IpAddrCtrl(BaseMaskedTextCtrl, IpAddrCtrlAccessorsMixin)¶This class is a particular type of MaskedTextCtrl that accepts and understands the semantics of IP addresses, reformats input as you move from field to field, and accepts ‘.’ as a navigation character, so that typing an IP address can be done naturally.
__init__(self, parent, id=-1, value = '', pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.TE_PROCESS_TAB, validator = wx.DefaultValidator, name = 'IpAddrCtrl', setupEventHandling = True, **kwargs)¶Default class constructor.
| Parameters: | 
 | 
|---|
GetAddress(self)¶Returns the control value, with any spaces removed.
OnDot(self, event)¶Defines what action to take when the ‘.’ character is typed in the control. By default, the current field is right-justified, and the cursor is placed in the next field.
SetValue(self, value)¶Takes a string value, validates it for a valid IP address, splits it into an array of 4 fields, justifies it appropriately, and inserts it into the control. Invalid values will raise a ValueError exception.
| Parameters: | value (string) – the IP address in the form ‘000.000.000.000’ | 
|---|