本文整理汇总了Python中PyQt5.QtWebEngineWidgets.QWebEngineView.setHidden方法的典型用法代码示例。如果您正苦于以下问题:Python QWebEngineView.setHidden方法的具体用法?Python QWebEngineView.setHidden怎么用?Python QWebEngineView.setHidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt5.QtWebEngineWidgets.QWebEngineView
的用法示例。
在下文中一共展示了QWebEngineView.setHidden方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: X0h
# 需要导入模块: from PyQt5.QtWebEngineWidgets import QWebEngineView [as 别名]
# 或者: from PyQt5.QtWebEngineWidgets.QWebEngineView import setHidden [as 别名]
#.........这里部分代码省略.........
return html
def getLeftPartWidth(self):
return 620
def initializeTabs(self):
current_tab = self.tabs_widget.currentIndex()
size = len(self.tabs)
for index in range(0, size):
self.tabs_widget.removeTab(size-1-index)
self.tabs = [gui.createTabPage(self.tabs_widget, "X-ray Server Ouput"),
gui.createTabPage(self.tabs_widget, "Critical Angle for TER"),
gui.createTabPage(self.tabs_widget, "Darwin Curve (" + u"\u03C3" + " Pol.)"),
gui.createTabPage(self.tabs_widget, "Darwin Curve (" + u"\u03C0" + " Pol.)"),
]
for tab in self.tabs:
tab.setFixedHeight(650)
tab.setFixedWidth(750)
self.plot_canvas = [None, None, None]
self.tabs_widget.setCurrentIndex(current_tab)
def js_callback(self, result):
pass
def _callable_1(self, html):
self.original_signal = self.x0h_input.loadFinished
self.x0h_input.loadFinished.connect(self.loadFinished)
self.x0h_input.setHidden(True)
self.x0h_input.page().runJavaScript("document.getElementById('submit-btn').click()", self.js_callback)
def loadFinished(self):
self.x0h_input.page().toHtml(self._callable_2)
def _callable_2(self, html):
try:
self.x0h_input.loadFinished.disconnect()
self.x0h_input.back()
self.x0h_input.setHidden(False)
response_1 = self.clear_response(html)
response_2 = self.clear_response(html)
self.tabs_widget.setCurrentIndex(0)
self.x0h_output.setHtml(response_1)
data0, data1, data2 = self.extract_plots(response_2)
exchange_data = DataExchangeObject("XRAYSERVER", "X0H")
exchange_data.add_content("reflectivity", data0)
exchange_data.add_content("reflectivity_units_to_degrees", 1.0)
exchange_data.add_content("x-ray_diffraction_profile_sigma", data1)
exchange_data.add_content("x-ray_diffraction_profile_sigma_units_to_degrees", 0.000277777805)
exchange_data.add_content("x-ray_diffraction_profile_pi", data2)
exchange_data.add_content("x-ray_diffraction_profile_pi_units_to_degrees", 0.000277777805)
self.send("xrayserver_data", exchange_data)
except urllib.error.HTTPError as e: