Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import *
- import time
- import json
- import sqlite3
- t = Turtle()
- t.screen.setup(800,550)
- t.screen.bgcolor("#002137")
- t.color('yellow')
- while 1==1:
- conn = sqlite3.connect("tplong.db")
- cursor = conn.cursor()
- cursor.execute('SELECT * FROM albums ')
- raw = cursor.fetchall()
- pr=raw [0]
- print(pr)
- bid=(pr [0])
- startrate=float(pr [1])
- startrate=str(startrate)
- appl=str(pr [2])
- sl=str(pr [3])
- strat=(pr [4])
- am=str(pr [5])
- perc=str(pr [6])
- t.clear()
- t.color('yellow')
- t.goto(-400,130)
- t.write((bid),font=("Arial", 100, "bold"))
- t.color('yellow')
- t.goto(-400,80)
- t.write(('Strategy is '+strat),font=("Arial", 40, "bold"))
- time.sleep(0.1)
- t.color('orange')
- t.goto(-400,-250)
- t.write(("Startrate "+startrate),font=("Arial", 36, "normal"))
- t.goto(-400,-200)
- t.write(('TrailPerc ' +perc),font=("Arial", 36, "bold"))
- t.goto(-400,-120)
- t.write(('Amount BTC '+am),font=("Arial", 36, "normal"))
- t.goto(-400,-70)
- t.write(("StopLoss "+sl),font=("Arial", 36, "bold"))
- t.goto(-400,10)
- t.write(('Applied='+appl),font=("Arial", 36, "normal"))
- time.sleep(2)
- t.screen.exitonclick()
- t.screen.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement