-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.py
More file actions
23 lines (17 loc) · 670 Bytes
/
help.py
File metadata and controls
23 lines (17 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from PyQt6.QtWidgets import QWidget, QVBoxLayout, QTextBrowser
from PyQt6.QtCore import Qt, QUrl
class HelpWidget(QWidget):
def __init__(self, parent=None):
super().__init__(parent)
self.init_ui()
def init_ui(self):
layout = QVBoxLayout(self)
self.text_browser = QTextBrowser()
self.text_browser.setOpenExternalLinks(True)
# Load the HTML file
html_path = QUrl.fromLocalFile("help.html")
self.text_browser.setSource(html_path)
layout.addWidget(self.text_browser)
self.setLayout(layout)
self.setWindowTitle("Graph Visualization Tool Help")
self.resize(800, 600)