Cannot copy text to clipboard

I want to copy some text that is written to the clipboard. I created the following function: function copyTextToClipboard(){ document.getElementById(“contactsInfo”).select(); document.getElementById(“contactsInfo”).setSelectionRange(0, 99999) document.execCommand(“copy”); } That is called when the user clicks on the element: document.getElementById(“contactsInfo”).addEventListener(“click”, ()=>{ copyTextToClipboard(); }) The element in HTML: <div class=”information-container”> <p id=”contactsInfo”>Email: [email protected]</p> <p id=”contactsInfo”>Phone: +310961810340</p> <p id=”contactsInfo”>Street: Bolama</p> </div> It…

Details

Why PYQT5 did this “bound PYQT_SIGNAL mysignal of RowProduct object at 0x7f65e800aa60” to me?

`import sys from PyQt5.QtCore import QSize, pyqtSignal from PyQt5.QtWidgets import * from im_1 import A class A(QWidget): my_signal = pyqtSignal(str) def __init__(self, parent=None): super(A, self).__init__(parent) self.gridlay = QGridLayout(self) self.btn = QPushButton(’10’) self.btn.setMinimumSize(QSize(150, 150)) self.btn.clicked.connect(self.send_data) self.gridlay.addWidget(self.btn, 0, 0, 1, 1) self.btn_1 = QPushButton(’20’) self.btn_1.setMinimumSize(QSize(150, 150)) self.btn_1.clicked.connect(self.send_data) self.gridlay.addWidget(self.btn_1, 0, 1, 1, 1) self.btn_2 = QPushButton(’30’) self.btn_2.setMinimumSize(QSize(150, 150))…

Details