# eric7.MicroPython.EthernetDialogs.HostnameDialog

Module implementing a dialog to enter a host name for the device.

### Global Attributes

None

### Classes

HostnameDialog | Class implementing a dialog to enter a host name for the device.

### Functions

None

## HostnameDialog

Class implementing a dialog to enter a host name for the device.

### Derived from

QDialog, Ui_HostnameDialog

### Class Attributes

None

### Class Methods

None

### Methods

HostnameDialog | Constructor
getHostname | Public method to get the entered host name.

### Static Methods

None

#### HostnameDialog (Constructor)

HostnameDialog(parent=None)

Constructor

parent (QWidget (optional))
  reference to the parent widget (defaults to None)

#### HostnameDialog.getHostname

getHostname()

Public method to get the entered host name.

Return:
  host name for the device

Return Type:
  str

Up