-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMode.py
More file actions
30 lines (27 loc) · 917 Bytes
/
Mode.py
File metadata and controls
30 lines (27 loc) · 917 Bytes
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
from utils.settings import *
class Mode:
def __init__(self):
self.text1 = "Red"
self.text2 = "Green"
self.text3 = "Blue"
self.isRGB = True
def set_mode_text(self, buttons,t1,t2,t3):
for btn in buttons:
if (btn.name == "input_box_rh_text"):
btn.text = t1
if self.isRGB:
btn.text_color = RED
else:
btn.text_color = PURPLE
elif (btn.name == "input_box_gs_text"):
btn.text = t2
if self.isRGB:
btn.text_color = GREEN
else:
btn.text_color = PURPLE
elif (btn.name == "input_box_bv_text"):
btn.text = t3
if self.isRGB:
btn.text_color = BLUE
else:
btn.text_color = PURPLE