def METHOD_NAME(self, event):
    '''Return connection string'''
    choice = self.choiceConnection.GetString( self.choiceConnection.GetSelection())
    self.conStr = None
    if choice in ["udpin", "udpout", "tcpin", "tcp"]:
        self.conStr = "" + choice + ":" + self.textConIPPort.GetValue()
    else:
        self.conStr = "" + self.choiceSerialPort.GetString(self.choiceSerialPort.GetSelection()) + ":" + self.choiceBaud.GetString(self.choiceBaud.GetSelection())
    #print("1. " + self.conStr)
    self.EndModal(wx.ID_ADD)