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ihXgkHH+erBkxdJxgwe3QqeWcDM+zy5R2eafSrzAq0i8fDZIynS/X9m
Rm8/NtpzsTFjdPvxbCP4Dok1lVWHQV0MURl2msIbYd+6mgrOjmDQ+PYUyyoLgoFecqY2BspcQVtJ8DSGjecUf0nYqkhxgj3epdGAptCy
yryhTwWGj1AVTq4HPgjgOW73vw6JFRUVEUGptpnvMl+QeUO5iGSM1IoZ5KLjMso28XDKsJFT2e7o5Mp2ByLFT/1gX3ObRF1/PdrvZZkC
DP3QkQXVy6mkKZXhaCGSuBvURkNPKXbgavEjDpuNp3814Y17gI83DwKXxqmMfL0eB9IAulroLIDW89CSAm2XoPsJ6N+T1jc0zV65hc9m
8MyvdmTPqQF14TQpNGbH8bwbDxrULX3Uu0mnpvvFm4oTqdkhyzaNcHEXZAvgTXe3BGYdMMX36TynmAzDEp4ThwOnu3xnmmJ6P2R9OnyU
G0dN/Ghs4S1kz/A4eHYE9vMEI7DWez7PjE3VbGhgxv8DdFeQJUpbzHIAAAAUdEVYdFNvZnR3YXJlAFlhbmRleC5EaXNrTl/4kQAAAABJ
RU5ErkJggg==
'''
root = tk.Tk()
image = tk.PhotoImage(data=IMAGE_DATA)
label = tk.Label(root, image=image, padx=100, pady=100)
label.pack()
root.mainloop()
####
rev = {"#%d"%x:False for x in range(1,8)}
def treeview_sort_column(tv, col):
l = [(tv.set(k, col), k) for k in tv.get_children('')]
l.sort(reverse=rev[col])
for k in rev.keys():
tv.heading(k,text=tv.heading(k,"text").replace("v","").replace("^",""))
tv.heading(col,text=["^","v"][rev[col]]+tv.heading(col,"text"))
rev[col]=not rev[col]
for index, (val, k) in enumerate(l):
tv.move(k, '', index)
tree.place()
tree.heading("#1", text=" Код", command=lambda:treeview_sort_column(tree,"#1"))
tree.column("#1", minwidth=0, width=35)
tree.heading("#2", text=" Фамилия", command=lambda:treeview_sort_column(tree,"#2"))
tree.heading("#3", text=" Имя", command=lambda:treeview_sort_column(tree,"#3"))
tree.heading("#4", text=" Отчество", command=lambda:treeview_sort_column(tree,"#4"))
tree.heading("#5", text=" Год", command=lambda:treeview_sort_column(tree,"#5"))
tree.column("#5", minwidth=0, width=90)
tree.heading("#6", text=" Школа", command=lambda:treeview_sort_column(tree,"#6"))
tree.column("#6", minwidth=0, width=50)
tree.heading("#7", text=" Класс", command=lambda:treeview_sort_column(tree,"#7"))
####
from urllib.request import urlopen,Request
import json
url = "http://api-seller.ozon.ru/v1/category/tree"
headers = {
"Client-Id":836,
"Api-Key":"0296d4f2-70a1-4c09-b507-904fd05567b9",
"Content-Type":"application/json"
}
data = {
"category_id":17036076,
"language":"EN"
}
responce = urlopen(Request(url,bytes(json.dumps(data,indent=0),"utf-8"),headers))
for form,key in zip(forms,qwe):
form.send_keys(key)
a = b'\x7e\x41\x01\x00\x00\x00\x00\x00\x10\x1d\x43\xa1\x5f\x01\x1d\x43\xa1\x5f\x30\xc4\x55\x01\xf0\xa8\xfb\x01\x00\x00\x00\x00\x00\x00\xe4'
Size,numPage,Code,Time,StateGauge,LastTime,Lat,Lon,Speed,Course, = struct.unpack("<2xBIHIBIIIHH",a[:30])