Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Sep 5, 2024
1 parent ccb29e2 commit 436a5fb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions pyinstaller/embedded_browser/render_test.vue
1 change: 0 additions & 1 deletion pyinstaller/embedded_browser/test_pywebview.vue

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
mounted() {
console.log("mounted")
setTimeout(() => {
this.callback()
this.rendered()
}, 1000)
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/qtapp/solara-qt-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import click
import os

# make sure you use pyside when distributing your all without having to use a GPL license
# make sure you use pyside when distributing your app without having to use a GPL license
from qtpy.QtWidgets import QApplication
from qtpy.QtWebEngineWidgets import QWebEngineView
from qtpy import QtCore
Expand Down
8 changes: 3 additions & 5 deletions tests/qtapp/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ def callback(event):
print("Event received:", event)


@solara.component_vue("test_pywebview.vue")
def TestPywebview(event_callback):
@solara.component_vue("rendered.vue")
def RenderTest(event_rendered):
pass


@solara.component
def Page():
TestPywebview(event_callback=callback)
RenderTest(event_rendered=callback)
# make sure vue components of solara are working
solara.lab.ThemeToggle()
# html = "<script>pywebview.api.test(\"Test passes!\")</script>Script tag inserted"
# solara.HTML(unsafe_innerHTML=html)

0 comments on commit 436a5fb

Please sign in to comment.