Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # импорт всего модуля
- from tkinter import *
- from tkinter.ttk import *
- import json
- import time
- import sqlite3
- # создание окна tkinter
- root = Tk()
- root.title('BTC USDT Binance')
- root.geometry("500x500")
- root.config(bg="purple")
- def tablo():
- conn = sqlite3.connect("tplong.db")
- cursor = conn.cursor()
- cursor.execute('SELECT * FROM albums ')
- raw = cursor.fetchall()
- pr=raw [0]
- print(pr)
- bid=(pr [0])
- bid=float(bid)
- bid=str(bid)
- 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])
- lbl.config(text = 'APPLY ' + appl)
- lbl1.config(text = 'BID ' + bid)
- lbl2.config(text = 'AMOUNT ' + am)
- lbl3.config(text = 'StopLoss ' + sl)
- lbl4.config(text = 'Strategy '+strat)
- lbl5.config(text = 'PERC ' + perc)
- lbl6.config(text = 'Startrate ' + startrate)
- lbl.after(1000, tablo)
- lbl = Label(root, font = ('calibri', 20, 'bold'),
- background = 'purple',
- foreground = 'white')
- lbl.place(relx=.25, rely=.01)
- lbl1 = Label(root, font = ('calibri', 20, 'bold'),
- background = 'purple',
- foreground = 'white')
- lbl1.place(relx=.25, rely=.1)
- lbl2 = Label(root, font = ('calibri', 20, 'bold'),
- background = 'purple',
- foreground = 'white')
- lbl2.place(relx=.25, rely=.2)
- lbl3 = Label(root, font = ('calibri', 20, 'bold'),
- background = 'purple',
- foreground = 'white')
- lbl3.place(relx=.25, rely=.3)
- lbl4 = Label(root, font = ('calibri', 20, 'bold'),
- background = 'purple',
- foreground = 'white')
- lbl4.place(relx=.25, rely=.4)
- lbl5 = Label(root, font = ('calibri', 20, 'bold'),
- background = 'purple',
- foreground = 'white')
- lbl5.place(relx=.25, rely=.5)
- lbl6 = Label(root, font = ('calibri', 20, 'bold'),
- background = 'purple',
- foreground = 'white')
- lbl6.place(relx=.25, rely=.6)
- tablo()
- mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement