Skip to content

Commit

Permalink
fix text browser not functional
Browse files Browse the repository at this point in the history
  • Loading branch information
CKAyano committed Apr 4, 2023
1 parent 244e696 commit a559b1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions robotck/gui/dialog_addDH.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import copy

import pandas as pd
from PySide6.QtCore import QUrl
from PySide6.QtWidgets import QDialog, QDialogButtonBox

# from .main_window import MainWindow
Expand Down Expand Up @@ -124,8 +125,9 @@ def set_dh_textBrowser(self, t: dict):
)
)
)

self.textBrowser_dh_list.setSource(f"{TMP_PATH}/dh_browser.html")
_path = QUrl.fromLocalFile(f"{TMP_PATH}/dh_browser.html")
self.textBrowser_dh_list.clear()
self.textBrowser_dh_list.setSource(_path)
self.set_scrollBar_buttom()

def on_update_text_std(self):
Expand Down

0 comments on commit a559b1f

Please sign in to comment.