eg.SerialPortChoice

class eg.SerialPortChoice(parent, id=-1, pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=0, validator=<wx._core.Validator; proxy of <Swig Object of type 'wxValidator *' at 0x50ff780> >, name=u'choice', value=None)[source]

A wx.Choice control that shows all available serial ports on the system.

GetValue()[source]

Return the currently selected serial port.

Return type:int
Returns:The serial port as an integer (0 = COM1:)