MrCypher 7 ay önce
ebeveyn
işleme
f1d9f85915
1 değiştirilmiş dosya ile 3 ekleme ve 6 silme
  1. 3 6
      GUI.py

+ 3 - 6
GUI.py

@@ -25,14 +25,15 @@ async def connect():
 
 #function that will recive the ESP32 data 
 def getCurrentScore():
-    print(30)
     #than do math to figure out power level
-
+    return 30
 
 currentScore = getCurrentScore()
 highestScore = 100
 highScoreName = ""
 
+names = []
+scores = []
 
 if currentScore > highestScore :
     highestScore = currentScore
@@ -55,10 +56,6 @@ canvas = ctk.CTkCanvas(app, width=500, height=480,highlightthickness=0,)
 canvas.config(background="white")
 canvas.place(x=0,y=0)
 
-
-names = []
-scores = []
-
 def placeLeaderboard():
     canvas.create_rectangle(0, 0, 500, 500, fill="grey20", width=2) #grey14 to match background