import os
from PyQt6.QtCore import Qt, QUrl
from PyQt6.QtWidgets import QApplication
from PyQt6.QtGui import QColorConstants
from PyQt6.QtWebEngineWidgets import QWebEngineView
class Main(QWebEngineView):
def __init__(self):
super().__init__()
self.setWindowTitle('three.js webgl - animation - keyframes')
self.resize(1024, 768)
self.page().setBackgroundColor(QColorConstants.Black)
u = QUrl.fromLocalFile(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'app', 'webgl_animation_keyframes.html'))
self.load(u)
self.show()
if __name__ == '__main__':
import sys
app = QApplication(sys.argv)
main = Main()
sys.exit(app.exec())