12 lines
458 B
Python
12 lines
458 B
Python
from PySide6.QtWidgets import QLabel
|
|
from PySide6.QtCore import Qt
|
|
|
|
|
|
class Label(QLabel):
|
|
def __init__(self, text: str):
|
|
super(Label, self).__init__(text)
|
|
self.setTextInteractionFlags(Qt.TextInteractionFlag.TextBrowserInteraction)
|
|
self.setTextInteractionFlags(Qt.TextInteractionFlag.LinksAccessibleByMouse)
|
|
self.setTextInteractionFlags(Qt.TextInteractionFlag.TextSelectableByMouse)
|
|
self.setOpenExternalLinks(True)
|