Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import tkinter as tk
- root = tk.Tk()
- root.title(u"seitokai") #タイトルネーム
- root.geometry("800x600") #ウィンドウサイズ
- #採点基準
- boxtext1 = tk.Label(text=u'採点基準1', font=("MSゴシック", "15", "bold"))
- boxtext1.place(x=45, y=18)
- #B系
- box1a = tk.Entry(width=15)
- box1a.place(x=70, y=54)
- boxtext1a = tk.Label(text=u'B系', font=("MSゴシック", "15", "bold"))
- boxtext1a.place(x=20, y=50)
- #G系
- box1b = tk.Entry(width=15)
- box1b.place(x=70, y=79)
- boxtext1b = tk.Label(text=u'G系', font=("MSゴシック", "15", "bold"))
- boxtext1b.place(x=20, y=75)
- #O系
- box1c = tk.Entry(width=15)
- box1c.place(x=70, y=104)
- boxtext1c = tk.Label(text=u'O系', font=("MSゴシック", "15", "bold"))
- boxtext1c.place(x=20, y=100)
- #P系
- box1d = tk.Entry(width=15)
- box1d.place(x=70, y=129)
- boxtext1d = tk.Label(text=u'P系', font=("MSゴシック", "15", "bold"))
- boxtext1d.place(x=20, y=125)
- #R系
- box1e = tk.Entry(width=15)
- box1e.place(x=70, y=154)
- boxtext1e = tk.Label(text=u'R系', font=("MSゴシック", "15", "bold"))
- boxtext1e.place(x=20, y=150)
- #S系
- box1f = tk.Entry(width=15)
- box1f.place(x=70, y=179)
- boxtext1f = tk.Label(text=u'S系', font=("MSゴシック", "15", "bold"))
- boxtext1f.place(x=20, y=175)
- #V系
- box1g = tk.Entry(width=15)
- box1g.place(x=70, y=204)
- boxtext1g = tk.Label(text=u'V系', font=("MSゴシック", "15", "bold"))
- boxtext1g.place(x=20, y=200)
- #Y系
- box1g = tk.Entry(width=15)
- box1g.place(x=70, y=229)
- boxtext1g = tk.Label(text=u'Y系', font=("MSゴシック", "15", "bold"))
- boxtext1g.place(x=20, y=225)
- #先1
- box1h = tk.Entry(width=15)
- box1h.place(x=70, y=254)
- boxtext1h = tk.Label(text=u'先1', font=("MSゴシック", "15", "bold"))
- boxtext1h.place(x=20, y=250)
- #先2
- box1i = tk.Entry(width=15)
- box1i.place(x=70, y=279)
- boxtext1i = tk.Label(text=u'先2', font=("MSゴシック", "15", "bold"))
- boxtext1i.place(x=20, y=275)
- #先3
- box1j = tk.Entry(width=15)
- box1j.place(x=70, y=304)
- boxtext1j = tk.Label(text=u'先3', font=("MSゴシック", "15", "bold"))
- boxtext1j.place(x=20, y=300)
- #採点基準1終
- #採点基準2
- boxtext1 = tk.Label(text=u'採点基準2', font=("MSゴシック", "15", "bold"))
- boxtext1.place(x=235, y=18)
- #B系
- box2a = tk.Entry(width=15)
- box2a.place(x=270, y=54)
- boxtext2a = tk.Label(text=u'B系', font=("MSゴシック", "15", "bold"))
- boxtext2a.place(x=220, y=50)
- #G系
- box2b = tk.Entry(width=15)
- box2b.place(x=270, y=79)
- boxtext2b = tk.Label(text=u'G系', font=("MSゴシック", "15", "bold"))
- boxtext2b.place(x=220, y=75)
- #O系
- box2c = tk.Entry(width=15)
- box2c.place(x=270, y=104)
- boxtext2c = tk.Label(text=u'O系', font=("MSゴシック", "15", "bold"))
- boxtext2c.place(x=220, y=100)
- #P系
- box2d = tk.Entry(width=15)
- box2d.place(x=270, y=129)
- boxtext2d = tk.Label(text=u'P系', font=("MSゴシック", "15", "bold"))
- boxtext2d.place(x=220, y=125)
- #R系
- box2e = tk.Entry(width=15)
- box2e.place(x=270, y=154)
- boxtext2e = tk.Label(text=u'R系', font=("MSゴシック", "15", "bold"))
- boxtext2e.place(x=220, y=150)
- #S系
- box2f = tk.Entry(width=15)
- box2f.place(x=270, y=179)
- boxtext2f = tk.Label(text=u'S系', font=("MSゴシック", "15", "bold"))
- boxtext2f.place(x=220, y=175)
- #V系
- box2g = tk.Entry(width=15)
- box2g.place(x=270, y=204)
- boxtext2g = tk.Label(text=u'V系', font=("MSゴシック", "15", "bold"))
- boxtext2g.place(x=220, y=200)
- #Y系
- box2g = tk.Entry(width=15)
- box2g.place(x=270, y=229)
- boxtext2g = tk.Label(text=u'Y系', font=("MSゴシック", "15", "bold"))
- boxtext2g.place(x=220, y=225)
- #先1
- box2h = tk.Entry(width=15)
- box2h.place(x=270, y=254)
- boxtext2h = tk.Label(text=u'先1', font=("MSゴシック", "15", "bold"))
- boxtext2h.place(x=220, y=250)
- #先2
- box2i = tk.Entry(width=15)
- box2i.place(x=270, y=279)
- boxtext2i = tk.Label(text=u'先2', font=("MSゴシック", "15", "bold"))
- boxtext2i.place(x=220, y=275)
- #先3
- box2j = tk.Entry(width=15)
- box2j.place(x=270, y=304)
- boxtext2j = tk.Label(text=u'先3', font=("MSゴシック", "15", "bold"))
- boxtext2j.place(x=220, y=300)
- #採点基準2終
- #採点基準3
- boxtext3 = tk.Label(text=u'採点基準3', font=("MSゴシック", "15", "bold"))
- boxtext3.place(x=425, y=18)
- #B系
- box3a = tk.Entry(width=15)
- box3a.place(x=470, y=54)
- boxtext3a = tk.Label(text=u'B系', font=("MSゴシック", "15", "bold"))
- boxtext3a.place(x=420, y=50)
- #G系
- box3b = tk.Entry(width=15)
- box3b.place(x=470, y=79)
- boxtext3b = tk.Label(text=u'G系', font=("MSゴシック", "15", "bold"))
- boxtext3b.place(x=420, y=75)
- #O系
- box3c = tk.Entry(width=15)
- box3c.place(x=470, y=104)
- boxtext3c = tk.Label(text=u'O系', font=("MSゴシック", "15", "bold"))
- boxtext3c.place(x=420, y=100)
- #P系
- box3d = tk.Entry(width=15)
- box3d.place(x=470, y=129)
- boxtext3d = tk.Label(text=u'P系', font=("MSゴシック", "15", "bold"))
- boxtext3d.place(x=420, y=125)
- #R系
- box3e = tk.Entry(width=15)
- box3e.place(x=470, y=154)
- boxtext3e = tk.Label(text=u'R系', font=("MSゴシック", "15", "bold"))
- boxtext3e.place(x=420, y=150)
- #S系
- box3f = tk.Entry(width=15)
- box3f.place(x=470, y=179)
- boxtext3f = tk.Label(text=u'S系', font=("MSゴシック", "15", "bold"))
- boxtext3f.place(x=420, y=175)
- #V系
- box3g = tk.Entry(width=15)
- box3g.place(x=470, y=204)
- boxtext3g = tk.Label(text=u'V系', font=("MSゴシック", "15", "bold"))
- boxtext3g.place(x=420, y=200)
- #Y系
- box3g = tk.Entry(width=15)
- box3g.place(x=470, y=229)
- boxtext3g = tk.Label(text=u'Y系', font=("MSゴシック", "15", "bold"))
- boxtext3g.place(x=420, y=225)
- #先1
- box3h = tk.Entry(width=15)
- box3h.place(x=470, y=254)
- boxtext3h = tk.Label(text=u'先1', font=("MSゴシック", "15", "bold"))
- boxtext3h.place(x=420, y=250)
- #先2
- box3i = tk.Entry(width=15)
- box3i.place(x=470, y=279)
- boxtext3i = tk.Label(text=u'先2', font=("MSゴシック", "15", "bold"))
- boxtext3i.place(x=420, y=275)
- #先3
- box3j = tk.Entry(width=15)
- box3j.place(x=470, y=304)
- boxtext3j = tk.Label(text=u'先3', font=("MSゴシック", "15", "bold"))
- boxtext3j.place(x=420, y=300)
- #採点基準3終
- box1aval = box1a.get()
- box1bval = box1b.get()
- box1cval = box1c.get()
- box1dval = box1d.get()
- box1eval = box1e.get()
- box1fval = box1f.get()
- box1gval = box1g.get()
- box1hval = box1h.get()
- box1ival = box1i.get()
- box1jval = box1j.get()
- box2aval = box2a.get()
- box2bval = box2b.get()
- box2cval = box2c.get()
- box2dval = box2d.get()
- box2eval = box2e.get()
- box2fval = box2f.get()
- box2gval = box2g.get()
- box2hval = box2h.get()
- box2ival = box2i.get()
- box2jval = box2j.get()
- box3aval = box3a.get()
- box3bval = box3b.get()
- box3cval = box3c.get()
- box3dval = box3d.get()
- box3eval = box3e.get()
- box3fval = box3f.get()
- box3gval = box3g.get()
- box3hval = box3h.get()
- box3ival = box3i.get()
- box3jval = box3j.get()
- def create_widget():
- # label1ウィジェット
- Rank1 = tk.Label(text=u'B系', font=("MSゴシック", "15", "bold"))
- Rank1.place(x=80, y=350)
- # button1ウィジェット
- def button1_clicked(): # button1をクリックした時の処理
- Rank1a["text"] = box1a # メインループの終了
- button1 = tk.Button(text="いいや!限界だ押すね!", command=button1_clicked) # command引数にbutton1_clicked関数を渡す
- button1.pack() # button1ウィジェットを配置
- #順位
- Rank1a = tk.Label(text=u" ", font=("MSゴシック", "15", "bold"))
- Rank1a.place(x=80, y=380)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement