mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
Fix the toga example (#1028)
This commit is contained in:
@@ -16,10 +16,6 @@
|
|||||||
|
|
||||||
<title>Loading...</title>
|
<title>Loading...</title>
|
||||||
<link rel="icon" type="image/png" href="../favicon.png" />
|
<link rel="icon" type="image/png" href="../favicon.png" />
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="toga-placeholder">Loading...</div>
|
|
||||||
|
|
||||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
|
||||||
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||||
@@ -33,22 +29,27 @@
|
|||||||
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
|
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
|
||||||
crossorigin="anonymous">
|
crossorigin="anonymous">
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</head>
|
||||||
|
<body>
|
||||||
<py-config>
|
<py-config>
|
||||||
packages = [
|
packages = [
|
||||||
"./static/wheels/travertino-0.1.3-py3-none-any.whl",
|
"./static/wheels/travertino-0.1.3-py3-none-any.whl",
|
||||||
"./static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl",
|
"./static/wheels/toga_core-0.3.0.dev39-py3-none-any.whl",
|
||||||
"./static/wheels/toga_web-0.3.0.dev33-py3-none-any.whl",
|
"./static/wheels/toga_web-0.3.0.dev39-py3-none-any.whl",
|
||||||
"./static/wheels/freedom-0.0.1-py3-none-any.whl"
|
"./static/wheels/freedom-0.0.1-py3-none-any.whl"
|
||||||
]
|
]
|
||||||
</py-config>
|
terminal = false
|
||||||
|
</py-config>
|
||||||
|
|
||||||
<py-script>
|
<div id="app-placeholder">Loading...</div>
|
||||||
from toga_web.dom import handle as dom_handle
|
<py-script>
|
||||||
|
from pyscript import Element
|
||||||
|
from freedom.__main__ import main
|
||||||
|
|
||||||
from freedom.__main__ import main
|
|
||||||
|
|
||||||
app = main().main_loop(spa=True)
|
# Remove text from placeholder
|
||||||
</py-script>
|
Element('app-placeholder').write('', append=False)
|
||||||
|
app = main().main_loop()
|
||||||
|
</py-script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user