eric7.MicroPython.EthernetDialogs.IPv4AddressDialog
Module implementing a dialog to enter an IPv4 address.
Global Attributes
Classes
Functions
IPv4AddressDialog
Class implementing a dialog to enter an IPv4 address.
Derived from
QDialog, Ui_IPv4AddressDialog
Class Attributes
Class Methods
Methods
Static Methods
IPv4AddressDialog (Constructor)
IPv4AddressDialog(withDhcp=False, parent=None)
Constructor
- withDhcp (bool)
-
flag indicating to allow the DHCP selection
- parent (QWidget (optional))
-
reference to the parent widget (defaults to None)
IPv4AddressDialog.__updateOk
__updateOk()
Private method to update the enabled state of the OK button.
IPv4AddressDialog.getIPv4Address
getIPv4Address()
Public method to get the entered IPv4 address.
- Return:
-
tuple containing a tuple of the IPv4 address, the netmask, the gateway
address and the resolver address or the string 'dhcp' if dynamic addressing
was selected and the hostname for the device
- Return Type:
-
tuple of ((str, str, str, str), str) or (str, str)