From cf5c8a5a01fa5a83d7ae912ba49056e379e58d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BERTHO?= Date: Sat, 1 Sep 2018 17:06:50 +0200 Subject: [PATCH] Fixed url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi BERTHO --- SimplePanoramaViewer | 3 +- index.html | 66 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 index.html diff --git a/SimplePanoramaViewer b/SimplePanoramaViewer index 6975d9d..09d7571 100755 --- a/SimplePanoramaViewer +++ b/SimplePanoramaViewer @@ -36,7 +36,8 @@ except OSError as exception: html = html.replace("__IMG_PATH__", img) web = QWebEngineView() -web.setHtml(html,QUrl("file://" + exe_dir + "/")) +url = QUrl.fromLocalFile(exe_dir + "/index.html") +web.setHtml(html,url) web.setWindowTitle(img) web.showMaximized() web.show() diff --git a/index.html b/index.html new file mode 100644 index 0000000..2f47c02 --- /dev/null +++ b/index.html @@ -0,0 +1,66 @@ + + + + + Panorama viewer + + + + + + + + +
+ + + + + + + +

Panorama

> + + + +