diff --git a/LICENSE b/LICENSE index 3f28a5f..459a236 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright (c) 2018 RĂ©mi BERTHO Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/html/index.html b/html/index.html index 35eb0da..3789e8b 100644 --- a/html/index.html +++ b/html/index.html @@ -49,7 +49,12 @@ var PSV = new PhotoSphereViewer({ container: 'photosphere', panorama: '__IMG_PATH__', - time_anim: false + time_anim: false, + navbar: [ + 'autorotate', + 'zoom', + 'caption' + ] }); diff --git a/main.py b/main.py index 7842b6d..a2718ab 100755 --- a/main.py +++ b/main.py @@ -12,18 +12,21 @@ from PyQt5.QtWebEngineWidgets import * path = os.path.dirname(os.path.realpath(sys.argv[0])) os.chdir(path) +img = sys.argv[1] + try: with open("html/index.html", "r", encoding="utf8") as file: html = file.read() except OSError as exception: print("Error: HTML file not found: " + str(exception)) -html = html.replace("__IMG_PATH__", sys.argv[1]) +html = html.replace("__IMG_PATH__", img) app = QApplication(sys.argv) +app.setApplicationName("SimplePanoramaViewer") web = QWebEngineView() web.setHtml(html,QUrl("file://" + path + "/index.html")) -web.setWindowTitle("SimplePanoramaViewer") +web.setWindowTitle(img) web.show() sys.exit(app.exec_())