self.okButton.clicked.connect(self.accept)
self.cancelButton.clicked.connect(self.reject)
input_axiskeys = ["".join(tag.key for tag in info.axistags) for info in infos]
self.multi_axes_display.setEnabled(False)
self.multi_axes_display.setText("Current: " + ", ".join(input_axiskeys))
After Change
self.axesEdit.textChanged.connect(self.validate_new_axiskeys)
different_axiskeys = set(input_axiskeys)
if len(different_axiskeys) == 1:
self.axesEdit.setText(different_axiskeys.pop())
else:
self.multi_axes_display.setToolTip("Select lanes with same number of axes to change their interpretation here")
self.axesEdit.setEnabled(False)