-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_gen.py
More file actions
137 lines (104 loc) · 2.98 KB
/
plot_gen.py
File metadata and controls
137 lines (104 loc) · 2.98 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
import tkinter as tk
import time
import os
import sys
from os import times
from tkinter import font
root = tk.Tk()
root.title("Schmoney Tracker")
HEIGHT = 200
WIDTH = 400
def run_buy_xed_history():
os.system('python "C:/Users/radli/code/documentation/txt/buy_xed.py"')
def run_buy_rbc_history():
os.system('python "C:/Users/radli/code/documentation/txt/buy_rbc.py"')
def run_sell_xed_history():
os.system('python "C:/Users/radli/code/documentation/txt/sell_xed.py"')
def run_sell_rbc_history():
os.system('python "C:/Users/radli/code/documentation/txt/sell_rbc.py"')
def run_buy_xed_plot():
os.system('python "C:/Users/radli/code/documentation/plt/buy_xed.py"')
def run_buy_rbc_plot():
os.system('python "C:/Users/radli/code/documentation/plt/buy_rbc.py"')
def run_sell_rbc_plot():
os.system('python "C:/Users/radli/code/documentation/plt/sell_rbc.py"')
def run_sell_xed_plot():
os.system('python "C:/Users/radli/code/documentation/plt/sell_xed.py"')
# Set screen size
canvas = tk.Canvas(root, height=HEIGHT, width=WIDTH)
canvas.pack()
frame = tk.Frame(root, bg="black")
frame.place(relwidth=1, relheight=1) # relx =0,1 rely=0.1
button_buy_xed = tk.Button(
frame,
text="XED history",
bg="#5cdb5c",
fg="black",
command=run_buy_xed_history,
font=("Ariel", 12),
)
button_buy_xed.place(relx=0, rely=0, relwidth=0.25, relheight=0.5)
button_buy_xed_plot = tk.Button(
frame,
text="XED plot",
bg="#5cdb5c",
fg="black",
command=run_buy_xed_plot,
font=("Ariel", 12),
)
button_buy_xed_plot.place(relx=0.25, rely=0, relwidth=0.25, relheight=0.5)
button_buy_rbc = tk.Button(
frame,
text="RBC history",
bg="#5cdb5c",
fg="black",
command=run_buy_rbc_history,
font=("Ariel", 12),
)
button_buy_rbc.place(relx=0, rely=0.5, relwidth=0.25, relheight=0.5)
button_buy_rbc_plot = tk.Button(
frame,
text="RBC plot",
bg="#5cdb5c",
fg="black",
command=run_buy_rbc_plot,
font=("Ariel", 12),
)
button_buy_rbc_plot.place(relx=0.25, rely=0.5, relwidth=0.25, relheight=0.5)
button_sell_xed = tk.Button(
frame,
text="XED history",
bg="#ff0021",
fg="black",
command=run_sell_xed_history,
font=("Ariel", 12),
)
button_sell_xed.place(relx=0.5, rely=0, relwidth=0.25, relheight=0.5)
button_sell_xed_plot = tk.Button(
frame,
text="XED plot",
bg="#ff0021",
fg="black",
command=run_sell_xed_plot,
font=("Ariel", 12),
)
button_sell_xed_plot.place(relx=0.75, rely=0, relwidth=0.25, relheight=0.5)
button_sell_rbc = tk.Button(
frame,
text="RBC history",
bg="#ff0021",
fg="black",
command=run_sell_rbc_history,
font=("Ariel", 12),
)
button_sell_rbc.place(relx=0.5, rely=0.5, relwidth=0.25, relheight=0.5)
button_sell_rbc_plot = tk.Button(
frame,
text="RBC plot",
bg="#ff0021",
fg="black",
command=run_sell_rbc_plot,
font=("Ariel", 12),
)
button_sell_rbc_plot.place(relx=0.75, rely=0.5, relwidth=0.25, relheight=0.5)
root.mainloop()