# eric7.MicroPython.NtpParametersDialog

Module implementing a dialog to enter the NTP parameters.

### Global Attributes

None

### Classes

NtpParametersDialog | Class implementing a dialog to enter the NTP parameters.

### Functions

None

## NtpParametersDialog

Class implementing a dialog to enter the NTP parameters.

### Derived from

QDialog, Ui_NtpParametersDialog

### Class Attributes

None

### Class Methods

None

### Methods

NtpParametersDialog | Constructor
__updateOk | Private slot to update the enabled stat of the OK button.
accept | Public slot accepting the dialog.
getParameters | Public method to get the entered NTP parameters.
on_buttonBox_clicked | Private slot handling the selection of a dialog button.

### Static Methods

None

#### NtpParametersDialog (Constructor)

NtpParametersDialog(parent=None)

Constructor

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

#### NtpParametersDialog.__updateOk

__updateOk()

Private slot to update the enabled stat of the OK button.

#### NtpParametersDialog.accept

accept()

Public slot accepting the dialog.

#### NtpParametersDialog.getParameters

getParameters()

Public method to get the entered NTP parameters.

Return:
  tuple containing the NTP server name, the timezone offset in hours, a flag indicating daylight savings is in effect and a timeout value in seconds

Return Type:
  tuple of (str, int, bool, int)

#### NtpParametersDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot handling the selection of a dialog button.

button (QAbstractButton)
  reference to the clicked button

Up