def copy_nodeid(self): node = self.get_current_node() text = node.nodeid.to_string() QApplication.clipboard().setText(text)