refactor: clean up unused imports and improve code organization
This commit is contained in:
@@ -2,7 +2,6 @@ import os
|
||||
import sys
|
||||
|
||||
# from PyQt6 import Webview
|
||||
from PyQt6.QtWebEngineWidgets import QWebEngineView
|
||||
from PyQt6.QtWidgets import QApplication, QMainWindow, QTabWidget
|
||||
|
||||
documentation_path = "docs"
|
||||
@@ -36,9 +35,8 @@ class DocumentationViewer(QMainWindow):
|
||||
tab_name="Documentation",
|
||||
html_content="<h1>Documentation</h1><p>Your HTML documentation content goes here.</p>",
|
||||
):
|
||||
documentation_tab = QWebEngineView()
|
||||
documentation_tab.setHtml(html_content)
|
||||
self.tabs.addTab(documentation_tab, tab_name)
|
||||
# open documentation
|
||||
name = tab_name
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user