def actionTriggered(self): taurus_widget = self.parent() model_name = taurus_widget.getModelName() w = model_name.split("/") if len(w) == 3: dev_name = model_name elif len(w) == 4: dev_name = w[0] + "/" + w[1] + "/" + w[2] else: return attr_name = dev_name + "/Image" import qub im = qub._TaurusQubDataImageDisplay(data=attr_name) im.show()