-
Notifications
You must be signed in to change notification settings - Fork 1
/
Guide.py
41 lines (28 loc) · 2.44 KB
/
Guide.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
import tkinter as tk
from typing import Text
class Guide():
def __init__(self):
self.root = tk.Tk()
self.root.title("Guide")
self.root.geometry("430x350")
self.root.configure(background="black")
def guide(self):
tk.Label(self.root, text=" - ", borderwidth=2, relief="groove", background="black", foreground="aqua").grid(row=0, column=0, padx=(15, 15), pady=(10, 10))
tk.Label(self.root, text="Zoom in", background="black", foreground="aqua").grid(row=0, column=1)
tk.Label(self.root, text=" + ", borderwidth=2, relief="groove", background="black", foreground="aqua").grid(row=1, column=0, padx=(15, 15), pady=(10, 10))
tk.Label(self.root, text="Zoom out", background="black", foreground="aqua").grid(row=1, column=1)
tk.Label(self.root, text="space", borderwidth=2, relief="groove", background="black", foreground="aqua").grid(row=2, column=0, padx=(15, 15), pady=(10, 10))
tk.Label(self.root, text="Change image", background="black", foreground="aqua").grid(row=2, column=1)
tk.Label(self.root, text="s", borderwidth=2, relief="groove", background="black", foreground="aqua").grid(row=3, column=0, padx=(15, 15), pady=(10, 10))
tk.Label(self.root, text="Save image", background="black", foreground="aqua").grid(row=3, column=1)
tk.Label(self.root, text="l", borderwidth=2, relief="groove", background="black", foreground="aqua").grid(row=4, column=0, padx=(15, 15), pady=(10, 10))
tk.Label(self.root, text="Load saved coordinates from file load.txt", background="black", foreground="aqua").grid(row=4, column=1)
tk.Label(self.root, text="t", borderwidth=2, relief="groove", background="black", foreground="aqua").grid(row=5, column=0, padx=(15, 15), pady=(10, 10))
tk.Label(self.root, text="Save shape coordinates in load.txt", background="black", foreground="aqua").grid(row=5, column=1)
tk.Label(self.root, text="r", borderwidth=2, relief="groove", background="black", foreground="aqua").grid(row=6, column=0, padx=(15, 15), pady=(10, 10))
tk.Label(self.root, text="Rainbow", background="black", foreground="aqua").grid(row=6, column=1)
tk.Button(command=self.exit, text="Click to run", borderwidth=5, relief="groove", background="black", foreground="aqua").grid(row=7, column=1, padx=(15, 15), pady=(10, 10))
tk.Pack()
self.root.mainloop()
def exit(self):
self.root.destroy()