-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
40 lines (36 loc) · 1.75 KB
/
main.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
import PhoneConversation
import PoemWordHelper
import GCHelper
import GCRegisterHelper
import tkinter as tk
from PIL import ImageTk, Image
from tkinter import ttk
from tkinter import font
# Compile command: pyinstaller -F -i icon.png -w main.py
main = tk.Tk()
main.title("DDLC Tools")
main.resizable(False, False)
buttonFont = font.Font(family="segoe", size=12)
style1 = ttk.Style(main)
style1.configure('TFrame')
style1.configure('mainFrame.TFrame', background="#191a36")
buttonsColor = "#0d0e28"
ico = Image.open('icon.png')
photo = ImageTk.PhotoImage(ico)
main.wm_iconphoto(True, photo)
frame = ttk.Frame(main, relief='sunken', style='mainFrame.TFrame', borderwidth=2)
frame.grid(column=0, row=0)
buttonPoem = tk.Button(frame, text="Poem Word Helper", command=PoemWordHelper.main, background=buttonsColor,
font=buttonFont, foreground="#ffffff", activebackground="#0a0a1a", activeforeground="#a8a8a8")
buttonPoem.grid(column=0, row=0)
buttonPhone = tk.Button(frame, text="Phone Conversation Helper", command=PhoneConversation.main,
background=buttonsColor, font=buttonFont, foreground="#ffffff", activebackground="#0a0a1a",
activeforeground="#a8a8a8")
buttonPhone.grid(column=1, row=0)
buttonGC = tk.Button(frame, text="GC Helper", command=GCHelper.main, background=buttonsColor,
font=buttonFont, foreground="#ffffff", activebackground="#0a0a1a", activeforeground="#a8a8a8")
buttonGC.grid(column=0, row=1)
buttonGCReg = tk.Button(frame, text="GC Registration Helper", command=GCRegisterHelper.main, background=buttonsColor,
font=buttonFont, foreground="#ffffff", activebackground="#0a0a1a", activeforeground="#a8a8a8")
buttonGCReg.grid(column=1, row=1)
main.mainloop()