

def __init__(self, *args, **kwds):
    self.settings = kwds['settings']
    del kwds['settings']
    kwds['style'] = wx.DEFAULT_DIALOG_STYLE
    wx.Dialog.__init__(self, *args, **kwds)
    self.checkbox_echo = wx.CheckBox(self, (- 1), 'Local Echo')
    self.checkbox_unprintable = wx.CheckBox(self, (- 1), 'Show unprintable characters')
    self.radio_box_newline = wx.RadioBox(self, (- 1), 'Newline Handling', choices=['CR only', 'LF only', 'CR+LF'], majorDimension=0, style=wx.RA_SPECIFY_ROWS)
    self.sizer_4_staticbox = wx.StaticBox(self, (- 1), 'Input/Output')
    self.button_ok = wx.Button(self, wx.ID_OK, '')
    self.button_cancel = wx.Button(self, wx.ID_CANCEL, '')
    self.__set_properties()
    self.__do_layout()
    self.__attach_events()
    self.checkbox_echo.SetValue(self.settings.echo)
    self.checkbox_unprintable.SetValue(self.settings.unprintable)
    self.radio_box_newline.SetSelection(self.settings.newline)

dataset/ETHPy150Open pyserial/pyserial/examples/wxTerminal.py TerminalSettingsDialog.__init__/original