Handler for selecting a device from the list in the UI

def device_selected(self, index):
        """Handler for selecting a device from the list in the UI"""
        device = self.devicelist_model.itemFromIndex(index)
        print(device.device.addr)
        self.btnConnect.setEnabled(True)