-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
44 lines (33 loc) · 1.02 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
41
42
43
44
import pyglet as pg
from tkinter import Tk, Label, Button
import core
from core_GUI import ui
fontname = "内海フォントJP--Regular"
pg.font.add_file("NKF.TTF")
select = Tk()
select.title("Mode Select")
select.configure(bg="#64aaf0")
select.geometry("400x300")
def GUI_open():
select.deiconify()
select.destroy()
ui()
def CLI_open():
select.deiconify()
select.destroy()
core.download_cli()
def startup():
label_usage = Label(select, text="Please select what UI do you want to use.", font=(
fontname, 12), bg="#64aaf0")
label_usage.pack()
GUI = Button(select, text="GUI", bg="#64aaf0", font=(
fontname, 20), command=lambda: GUI_open())
GUI.place(x=70, y=250)
CLI = Button(select, text="CLI", bg="#64aaf0", font=(
fontname, 20), command=lambda: CLI_open())
CLI.place(x=155, y=250)
EXIT = Button(select, text="EXIT", bg="#64aaf0",
font=(fontname, 20), command=select.destroy)
EXIT.place(x=240, y=250)
select.mainloop()
startup()