mirror of
https://github.com/pyscript/pyscript.git
synced 2022-05-01 19:47:48 +03:00
Add toga-web demo server.
This commit is contained in:
13
pyscriptjs/examples/toga/server/demo.py
Normal file
13
pyscriptjs/examples/toga/server/demo.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from flask import Flask
|
||||
|
||||
from toga_flask import TogaApp
|
||||
|
||||
from freedom import app as freedom
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
app.add_url_rule('/', view_func=TogaApp.as_view("foo", app_module=freedom))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(port=8081, debug=True)
|
||||
BIN
pyscriptjs/examples/toga/server/static/logo-32.png
Normal file
BIN
pyscriptjs/examples/toga/server/static/logo-32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
14
pyscriptjs/examples/toga/server/static/pyscript/pyscript.css
Normal file
14
pyscriptjs/examples/toga/server/static/pyscript/pyscript.css
Normal file
File diff suppressed because one or more lines are too long
27240
pyscriptjs/examples/toga/server/static/pyscript/pyscript.js
Normal file
27240
pyscriptjs/examples/toga/server/static/pyscript/pyscript.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
9
pyscriptjs/examples/toga/server/static/toga.css
Normal file
9
pyscriptjs/examples/toga/server/static/toga.css
Normal file
@@ -0,0 +1,9 @@
|
||||
main.toga.window {
|
||||
margin-top: 5em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
div.toga.box {
|
||||
display: flex;
|
||||
}
|
||||
1
pyscriptjs/examples/toga/server/static/wheels/README.md
Normal file
1
pyscriptjs/examples/toga/server/static/wheels/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Wheels will go here.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user