

def OnOK(self, events):
    'Update data wil new values and close dialog.'
    self.settings.echo = self.checkbox_echo.GetValue()
    events.settings.unprintable = self.checkbox_unprintable.GetValue()
    self.settings.newline = self.radio_box_newline.GetSelection()
    self.EndModal(wx.ID_OK)

dataset/ETHPy150Open pyserial/pyserial/examples/wxTerminal.py TerminalSettingsDialog.OnOK/VarMisuse@28/50 `self`->`events`