Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask, render_template, redirect, url_for
- app = Flask(__name__)
- @app.route('/')
- def index():
- return render_template('index.html')
- @app.route('/move')
- def b():
- import movingin
- return redirect(url_for('index'))
- @app.route('/call')
- def c():
- import firstcall
- return redirect(url_for('index'))
- if __name__ == '__main__':
- app.run(debug=True, host='0.0.0.0')
- import pygame
- pygame.mixer.init()
- pygame.mixer.music.load("/home/pi/Music/first call.wav")
- pygame.mixer.music.play()
- while pygame.mixer.music.get_busy() == True:
- continue
- <div class="col-1-4 mobile-col-1-1">
- <div class="button"><a href="/move">Moving In</a></div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement