-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindow.py
More file actions
35 lines (25 loc) · 850 Bytes
/
window.py
File metadata and controls
35 lines (25 loc) · 850 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
31
32
33
34
35
import tkinter as tk
import windowUtils
import const_enum as const
# ボタン押下時に引数を渡す
def on_click():
windowUtils.on_click(chk_options)
#######################
# メインウィンドウ #
#######################
root = tk.Tk()
root.title(const.TITLE)
root.geometry(const.GEOMETRY)
#######################
# ウィンドウ設置物 #
#######################
# ログを保存する
var_output_log = tk.BooleanVar()
chk_output_log = tk.Checkbutton(root, text=const.CHK_OUTPUT_LOG, variable=var_output_log)
# NOTE 今後オプションを追加する可能性があるためリストに格納
chk_options = [var_output_log]
chk_output_log.pack()
# 実行ボタン設置
start_button = tk.Button(root, text=const.START_BUTTON_TEXT, command=on_click, width=30, height=2)
start_button.pack()
root.mainloop()