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 1/2] 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

> + + + + From 2556287a76e02d2e752b8a80b4ef3eb7894230b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BERTHO?= Date: Sat, 1 Sep 2018 17:08:38 +0200 Subject: [PATCH 2/2] Delete index.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi BERTHO --- index.html | 66 ------------------------------------------------------ 1 file changed, 66 deletions(-) delete mode 100644 index.html diff --git a/index.html b/index.html deleted file mode 100644 index 2f47c02..0000000 --- a/index.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Panorama viewer - - - - - - - - -
- - - - - - - -

Panorama

> - - - -