I have following code that works on linux and my windows 7 machine even using WinPython environment:
# plt_file is valid html produced by Bokeh and that is correctly displayed in browser
with open(plt_file, "r") as f:
plot = f.read()
# self.plot_web_view.setContent(plot)
url = QUrl(plt_file)
self.plot_web_view.setHtml(plot, url)
But when I distribute my application using WinPyhton
my plot doesn't show up in QWebView
and no error is raised... If I try to load random html-files into QWebView
in my app they are displayed. I guess the issue is on Qt
side, but I have no clue what to do...
PyQt
version in WinPython
is 5.5.1
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…