Skip to content

Commit

Permalink
Finished index.html for python server. Made server's calls asynchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
prakharsingh95 committed Oct 20, 2013
1 parent 8dd8c05 commit 7a94cfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<title> Mad Frets </title>
</head>
<body>
<pre>Amazingly awesome</pre>
<pre>Hello
<form action="http://localhost:12000/madfrets" method="get">
<div><input type="submit" value="Let the music begin"></div>

</form>
</body>
</html>
3 changes: 2 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from bottle import route, run, template, static_file
import play
import frets
import thread

root = '/home/prakhar/dev/se13/Unbreakables/public/'

Expand All @@ -10,7 +11,7 @@ def index():

@route('/madfrets')
def index():
frets.init()
thread.start_new_thread(frets.init())
return "Initiated Capture"

@route('/css/<filename:re:.*\.css>')
Expand Down

0 comments on commit 7a94cfd

Please sign in to comment.