-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
85 lines (80 loc) · 2.76 KB
/
settings.py
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
import all_functions
from importlib import reload
def options():
while True:
# OPTIONS
option = all_functions.setting_function(
"Change wallpaper",
"Save picture",
"Save picture as-",
"Settings",
"Reset settings to default",
name="OPTIONS",
updating=False,
auto_back_key=False,
key="Exit",
)
if option == 1:
# Change wallpaper
all_functions.run()
elif option == 2:
# Save picture
all_functions.save_picture()
elif option == 3:
# Save picture as-
all_functions.save_as()
elif option == 4:
# SETTINGS
while True:
setting = all_functions.setting_function(
"Change keywords",
"Change time delay",
"Change custom link",
"Change source of wallpapers",
"Change fit type",
"Quotes settings",
name="SETTINGS",
updating=False,
auto_back_key=False,
)
if setting == 1:
# Change keywords
all_functions.change_keywords()
elif setting == 2:
# Change time delay
all_functions.change_time()
elif setting == 3:
# Change custom link
all_functions.change_custom_link()
elif setting == 4:
# Change source of wallpapers
all_functions.setting_function(
"From Unsplash",
"From Wallpapers Folder",
"From custom link",
"Quotes",
"Gradient colors",
name="source",
)
elif setting == 5:
# Change fit type
all_functions.setting_function(
"Original size", "Fit to screen", name="fit_type"
)
elif setting == 6:
# Quotes settings
all_functions.quote_settings()
elif setting == 0:
options()
break
reload(all_functions)
continue
break
elif option == 5:
all_functions.reset()
elif option == 0:
print("Exiting...")
print("Okay see you!")
break
if __name__ == "__main__":
options()