Repository navigation
Expand file tree
/
Copy pathApp.py
More file actions
178 lines (138 loc) · 6.18 KB
/
Copy pathApp.py
File metadata and controls
178 lines (138 loc) · 6.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
from tkinter import *
from main import Read
import matplotlib.pyplot as plt
import numpy as np
from pandas import *
class App(Read):
def __init__(self):
# Fenêtre
super().__init__()
window = Tk()
window.title("Bot Trading RL")
window.geometry("1280x720")
window.resizable(False, False)
window.iconbitmap("LOGORL.ico")
window.config(background="blue")
# Frame
frame = Frame(window, bg='blue')
# Image
bg = PhotoImage(file="background.png")
label1 = Label(window, image=bg)
label1.place(x=0, y=0)
readfennec = Read().get_Fennec()
readzomba = Read().get_Zomba()
readoctane = Read().get_Octane()
readmainframe = Read().get_Mainframe()
readinterstellar = Read().get_Interstellar()
mtext = Read().get_mtext()
itext = Read().get_itext()
otext = Read().get_otext()
ztext = Read().get_ztext()
ftext = Read().get_ftext()
def WindowF():
newWindow = Toplevel(window)
newWindow.geometry("400x600")
newWindow.resizable(False, False)
newWindow.iconbitmap("LOGORL.ico")
newWindow.config(background="red")
bk = PhotoImage(file="aze.png")
canvas = Canvas(newWindow, width=400, height=600)
canvas.pack(expand=YES, fill=BOTH)
canvas.create_image(50, 10, image=bk, anchor=NW)
canvas.bk = bk
canvas.place(x=0, y=0)
label_text = Label(newWindow, text="{0} \n Son pourcentage est d'actuellement de : {1} %".format(ftext, readfennec), font=("Heroes Legend", 8))
label_text.place(x=0, y=310)
label_text.pack
def WindowM():
newWindow = Toplevel(window)
newWindow.geometry("400x600")
newWindow.resizable(False, False)
newWindow.iconbitmap("LOGORL.ico")
newWindow.config(background="red")
bk = PhotoImage(file="aze.png")
canvas = Canvas(newWindow, width=400, height=600)
canvas.pack(expand=YES, fill=BOTH)
canvas.create_image(50, 10, image=bk, anchor=NW)
canvas.bk = bk
canvas.place(x=0, y=0)
label_text = Label(newWindow, text="{0} \n Son pourcentage est d'actuellement de : {1} %".format(mtext, readmainframe), font=("Heroes Legend", 8))
label_text.place(x=0, y=310)
label_text.pack
def WindowO():
newWindow = Toplevel(window)
newWindow.geometry("400x600")
newWindow.resizable(False, False)
newWindow.iconbitmap("LOGORL.ico")
newWindow.config(background="red")
bk = PhotoImage(file="aze.png")
canvas = Canvas(newWindow, width=400, height=600)
canvas.pack(expand=YES, fill=BOTH)
canvas.create_image(50, 10, image=bk, anchor=NW)
canvas.bk = bk
canvas.place(x=0, y=0)
label_text = Label(newWindow, text="{0} \n Son pourcentage est d'actuellement de : {1} %".format(otext, readoctane), font=("Heroes Legend", 8))
label_text.place(x=0, y=310)
label_text.pack
def WindowZ():
newWindow = Toplevel(window)
newWindow.geometry("400x600")
newWindow.resizable(False, False)
newWindow.iconbitmap("LOGORL.ico")
newWindow.config(background="red")
bk = PhotoImage(file="aze.png")
canvas = Canvas(newWindow, width=400, height=600)
canvas.pack(expand=YES, fill=BOTH)
canvas.create_image(50, 10, image=bk, anchor=NW)
canvas.bk = bk
canvas.place(x=0, y=0)
label_text = Label(newWindow, text="{0} \n Son pourcentage est d'actuellement de : {1} %".format(ztext, readzomba), font=("Heroes Legend", 8))
label_text.place(x=0, y=310)
label_text.pack
def WindowI():
newWindow = Toplevel(window)
newWindow.geometry("400x600")
newWindow.resizable(False, False)
newWindow.iconbitmap("LOGORL.ico")
newWindow.config(background="red")
bk = PhotoImage(file="aze.png")
canvas = Canvas(newWindow, width=400, height=600)
canvas.pack(expand=YES, fill=BOTH)
canvas.create_image(50, 10, image=bk, anchor=NW)
canvas.bk = bk
canvas.place(x=0, y=0)
label_text = Label(newWindow, text="{0} \n Son pourcentage est d'actuellement de : {1} %".format(itext, readinterstellar), font=("Heroes Legend", 8))
label_text.place(x=0, y=310)
label_text.pack
def Graph():
plt.close("all")
# Bouton
Fennec = Button(window, text="Fennec", font=("Heroes Legend", 5), bg='White', borderwidth=0, command=WindowF)
Fennec.config(height=1, width=39)
Fennec.pack()
Fennec.place(x=490, y=265)
Octane = Button(window, text="Crimson Octane", font=("Heroes Legend", 5), bg='White', borderwidth=0, command=WindowO)
Octane.config(height=1, width=39)
Octane.pack()
Octane.place(x=490, y=315)
Interstellar = Button(window, text="Interstellar", font=("Heroes Legend", 5), bg='White', borderwidth=0, command=WindowI)
Interstellar.config(height=1, width=42)
Interstellar.pack()
Interstellar.place(x=486, y=365)
Zomba = Button(window, text="Zomba Titanium White", font=("Heroes Legend", 5), bg='White', borderwidth=0, command=WindowZ)
Zomba.config(height=1, width=39)
Zomba.pack()
Zomba.place(x=490, y=415)
Mainframe = Button(window, text="Mainframe", font=("Heroes Legend", 5), bg='White', borderwidth=0, command=WindowM)
Mainframe.config(height=1, width=39)
Mainframe.pack()
Mainframe.place(x=490, y=465)
Graph = Button(window, text="Graphique", font=("Heroes Legend", 7), bg='White', borderwidth=0, command=Graph)
Graph.config(height=4, width=32)
Graph.pack()
Graph.place(x=475, y=530)
# Ajouter frame
frame.pack(expand=YES)
# Affichage app
window.mainloop()
App()