<div dir="ltr">Hello everybody,<div><br></div><div>this is my first post. Pardon me whether it has aldready been asked. </div><div>I made a small program with PyQT (5) and the result is shown into a QMessageBox. </div><div>In Windows I cannot select the text with the mouse while in Linux I can.</div><div><br></div><div>I suppose in Windows there's a different default that in Linux.</div><div>I saw there's an option in QT to force the text to be selectable, said mb is the instance of QMessageBox mb.setTextInteractionFlags(Qt::TextSelectableByMouse) but How can I apply it in Python?</div><div><br></div><div>My snippet:</div><div><div>    def tagconvert(self):</div><div>        i = self.lineEdit.text()</div><div>        if len(i) >= 0 and i.isdigit():</div><div>            d = (int(i)).to_bytes(4, byteorder='little')</div><div>            converted = ''.join('%02x' % c for c in d)</div><div>            msg=QMessageBox()</div><div>            msg.setText(converted)</div><div>            msg.setWindowTitle("Tag Convertito:")</div><div>            msg.setTextInteractionFlags(TextSelectableByMouse);</div><div>            msg.exec_()</div><div>            print(converted)</div><div>        else:</div></div><div><br></div><div>Thanks and best regads,</div><div>Leo</div></div>