Skip to content

Commit

Permalink
working but no processing indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardBJ committed Nov 22, 2023
1 parent d641ab9 commit 79ccecc
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,20 @@ <h1 class="display-4">Data</h1>
<script src="./main.js"></script>
<py-script>
import pyscript
import time
import js

# Import do_thing from main.py
processingButton = pyscript.Element("processing")



def runpy():
processingButton.hidden = False
pbutton = js.document.getElementById("processing")
abutton = js.document.getElementById("analyse_button")

"""time.sleep(5)"""
pbutton.hidden = False
abutton.hidden = True
do_thing()
processingButton.hidden = True
pbutton.hidden = True

</py-script>

Expand Down

0 comments on commit 79ccecc

Please sign in to comment.