Skip to content

Commit f5612fe

Browse files
author
kaya.ota@gmail.com
committed
minimal required files for desktop app
1 parent a83c01a commit f5612fe

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

main.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from flask import Flask
2+
from flask import render_template
3+
from flaskwebgui import FlaskUI
4+
5+
app = Flask(__name__)
6+
ui = FlaskUI(app, width=800, height=600)
7+
8+
@app.route("/")
9+
def index():
10+
return render_template('index.html')
11+
12+
if __name__ == "__main__":
13+
ui.run()

start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pyenv exec python3 main.py

templates/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
4+
</head>
5+
<body>
6+
<h1>hello world</h1>
7+
</body>
8+
</html>

0 commit comments

Comments
 (0)