update qt to 6.2.1
This commit is contained in:
10
label.py
Normal file
10
label.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from PyQt6.QtWidgets import QLabel
|
||||
from PyQt6.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.setOpenExternalLinks(True)
|
||||
Reference in New Issue
Block a user