Advertisement
Guest User

Untitled

a guest
May 12th, 2021
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 7.58 KB | None | 0 0
  1. import sys
  2. import tkinter as tk
  3.  
  4. root = tk.Tk()
  5. root.title(u"seitokai") #タイトルネーム
  6. root.geometry("800x600") #ウィンドウサイズ
  7.  
  8.  
  9.  
  10. #採点基準
  11.  
  12. boxtext1 = tk.Label(text=u'採点基準1', font=("MSゴシック", "15", "bold"))
  13. boxtext1.place(x=45, y=18)
  14.  
  15.     #B系
  16. box1a = tk.Entry(width=15)
  17. box1a.place(x=70, y=54)
  18.  
  19. boxtext1a = tk.Label(text=u'B系', font=("MSゴシック", "15", "bold"))
  20. boxtext1a.place(x=20, y=50)
  21.  
  22.     #G系
  23. box1b = tk.Entry(width=15)
  24. box1b.place(x=70, y=79)
  25.  
  26. boxtext1b = tk.Label(text=u'G系', font=("MSゴシック", "15", "bold"))
  27. boxtext1b.place(x=20, y=75)
  28.  
  29.     #O系
  30. box1c = tk.Entry(width=15)
  31. box1c.place(x=70, y=104)
  32.  
  33. boxtext1c = tk.Label(text=u'O系', font=("MSゴシック", "15", "bold"))
  34. boxtext1c.place(x=20, y=100)
  35.  
  36.     #P系
  37. box1d = tk.Entry(width=15)
  38. box1d.place(x=70, y=129)
  39.  
  40. boxtext1d = tk.Label(text=u'P系', font=("MSゴシック", "15", "bold"))
  41. boxtext1d.place(x=20, y=125)
  42.  
  43.     #R系
  44. box1e = tk.Entry(width=15)
  45. box1e.place(x=70, y=154)
  46.  
  47. boxtext1e = tk.Label(text=u'R系', font=("MSゴシック", "15", "bold"))
  48. boxtext1e.place(x=20, y=150)
  49.  
  50.     #S系
  51. box1f = tk.Entry(width=15)
  52. box1f.place(x=70, y=179)
  53.  
  54. boxtext1f = tk.Label(text=u'S系', font=("MSゴシック", "15", "bold"))
  55. boxtext1f.place(x=20, y=175)
  56.  
  57.     #V系
  58. box1g = tk.Entry(width=15)
  59. box1g.place(x=70, y=204)
  60.  
  61. boxtext1g = tk.Label(text=u'V系', font=("MSゴシック", "15", "bold"))
  62. boxtext1g.place(x=20, y=200)
  63.  
  64.     #Y系
  65. box1g = tk.Entry(width=15)
  66. box1g.place(x=70, y=229)
  67.  
  68. boxtext1g = tk.Label(text=u'Y系', font=("MSゴシック", "15", "bold"))
  69. boxtext1g.place(x=20, y=225)
  70.  
  71.     #先1
  72. box1h = tk.Entry(width=15)
  73. box1h.place(x=70, y=254)
  74.  
  75. boxtext1h = tk.Label(text=u'先1', font=("MSゴシック", "15", "bold"))
  76. boxtext1h.place(x=20, y=250)
  77.  
  78.     #先2
  79. box1i = tk.Entry(width=15)
  80. box1i.place(x=70, y=279)
  81.  
  82. boxtext1i = tk.Label(text=u'先2', font=("MSゴシック", "15", "bold"))
  83. boxtext1i.place(x=20, y=275)
  84.  
  85.     #先3
  86. box1j = tk.Entry(width=15)
  87. box1j.place(x=70, y=304)
  88.  
  89. boxtext1j = tk.Label(text=u'先3', font=("MSゴシック", "15", "bold"))
  90. boxtext1j.place(x=20, y=300)
  91.  
  92. #採点基準1終
  93.  
  94.  
  95.  
  96. #採点基準2
  97.  
  98. boxtext1 = tk.Label(text=u'採点基準2', font=("MSゴシック", "15", "bold"))
  99. boxtext1.place(x=235, y=18)
  100.  
  101.     #B系
  102. box2a = tk.Entry(width=15)
  103. box2a.place(x=270, y=54)
  104.  
  105. boxtext2a = tk.Label(text=u'B系', font=("MSゴシック", "15", "bold"))
  106. boxtext2a.place(x=220, y=50)
  107.  
  108.     #G系
  109. box2b = tk.Entry(width=15)
  110. box2b.place(x=270, y=79)
  111.  
  112. boxtext2b = tk.Label(text=u'G系', font=("MSゴシック", "15", "bold"))
  113. boxtext2b.place(x=220, y=75)
  114.  
  115.     #O系
  116. box2c = tk.Entry(width=15)
  117. box2c.place(x=270, y=104)
  118.  
  119. boxtext2c = tk.Label(text=u'O系', font=("MSゴシック", "15", "bold"))
  120. boxtext2c.place(x=220, y=100)
  121.  
  122.     #P系
  123. box2d = tk.Entry(width=15)
  124. box2d.place(x=270, y=129)
  125.  
  126. boxtext2d = tk.Label(text=u'P系', font=("MSゴシック", "15", "bold"))
  127. boxtext2d.place(x=220, y=125)
  128.  
  129.     #R系
  130. box2e = tk.Entry(width=15)
  131. box2e.place(x=270, y=154)
  132.  
  133. boxtext2e = tk.Label(text=u'R系', font=("MSゴシック", "15", "bold"))
  134. boxtext2e.place(x=220, y=150)
  135.  
  136.     #S系
  137. box2f = tk.Entry(width=15)
  138. box2f.place(x=270, y=179)
  139.  
  140. boxtext2f = tk.Label(text=u'S系', font=("MSゴシック", "15", "bold"))
  141. boxtext2f.place(x=220, y=175)
  142.  
  143.     #V系
  144. box2g = tk.Entry(width=15)
  145. box2g.place(x=270, y=204)
  146.  
  147. boxtext2g = tk.Label(text=u'V系', font=("MSゴシック", "15", "bold"))
  148. boxtext2g.place(x=220, y=200)
  149.  
  150.     #Y系
  151. box2g = tk.Entry(width=15)
  152. box2g.place(x=270, y=229)
  153.  
  154. boxtext2g = tk.Label(text=u'Y系', font=("MSゴシック", "15", "bold"))
  155. boxtext2g.place(x=220, y=225)
  156.  
  157.     #先1
  158. box2h = tk.Entry(width=15)
  159. box2h.place(x=270, y=254)
  160.  
  161. boxtext2h = tk.Label(text=u'先1', font=("MSゴシック", "15", "bold"))
  162. boxtext2h.place(x=220, y=250)
  163.  
  164.     #先2
  165. box2i = tk.Entry(width=15)
  166. box2i.place(x=270, y=279)
  167.  
  168. boxtext2i = tk.Label(text=u'先2', font=("MSゴシック", "15", "bold"))
  169. boxtext2i.place(x=220, y=275)
  170.  
  171.     #先3
  172. box2j = tk.Entry(width=15)
  173. box2j.place(x=270, y=304)
  174.  
  175. boxtext2j = tk.Label(text=u'先3', font=("MSゴシック", "15", "bold"))
  176. boxtext2j.place(x=220, y=300)
  177.  
  178. #採点基準2終
  179.  
  180. #採点基準3
  181.  
  182. boxtext3 = tk.Label(text=u'採点基準3', font=("MSゴシック", "15", "bold"))
  183. boxtext3.place(x=425, y=18)
  184.  
  185.     #B系
  186. box3a = tk.Entry(width=15)
  187. box3a.place(x=470, y=54)
  188.  
  189. boxtext3a = tk.Label(text=u'B系', font=("MSゴシック", "15", "bold"))
  190. boxtext3a.place(x=420, y=50)
  191.  
  192.     #G系
  193. box3b = tk.Entry(width=15)
  194. box3b.place(x=470, y=79)
  195.  
  196. boxtext3b = tk.Label(text=u'G系', font=("MSゴシック", "15", "bold"))
  197. boxtext3b.place(x=420, y=75)
  198.  
  199.     #O系
  200. box3c = tk.Entry(width=15)
  201. box3c.place(x=470, y=104)
  202.  
  203. boxtext3c = tk.Label(text=u'O系', font=("MSゴシック", "15", "bold"))
  204. boxtext3c.place(x=420, y=100)
  205.  
  206.     #P系
  207. box3d = tk.Entry(width=15)
  208. box3d.place(x=470, y=129)
  209.  
  210. boxtext3d = tk.Label(text=u'P系', font=("MSゴシック", "15", "bold"))
  211. boxtext3d.place(x=420, y=125)
  212.  
  213.     #R系
  214. box3e = tk.Entry(width=15)
  215. box3e.place(x=470, y=154)
  216.  
  217. boxtext3e = tk.Label(text=u'R系', font=("MSゴシック", "15", "bold"))
  218. boxtext3e.place(x=420, y=150)
  219.  
  220.     #S系
  221. box3f = tk.Entry(width=15)
  222. box3f.place(x=470, y=179)
  223.  
  224. boxtext3f = tk.Label(text=u'S系', font=("MSゴシック", "15", "bold"))
  225. boxtext3f.place(x=420, y=175)
  226.  
  227.     #V系
  228. box3g = tk.Entry(width=15)
  229. box3g.place(x=470, y=204)
  230.  
  231. boxtext3g = tk.Label(text=u'V系', font=("MSゴシック", "15", "bold"))
  232. boxtext3g.place(x=420, y=200)
  233.  
  234.     #Y系
  235. box3g = tk.Entry(width=15)
  236. box3g.place(x=470, y=229)
  237.  
  238. boxtext3g = tk.Label(text=u'Y系', font=("MSゴシック", "15", "bold"))
  239. boxtext3g.place(x=420, y=225)
  240.  
  241.     #先1
  242. box3h = tk.Entry(width=15)
  243. box3h.place(x=470, y=254)
  244.  
  245. boxtext3h = tk.Label(text=u'先1', font=("MSゴシック", "15", "bold"))
  246. boxtext3h.place(x=420, y=250)
  247.  
  248.     #先2
  249. box3i = tk.Entry(width=15)
  250. box3i.place(x=470, y=279)
  251.  
  252. boxtext3i = tk.Label(text=u'先2', font=("MSゴシック", "15", "bold"))
  253. boxtext3i.place(x=420, y=275)
  254.  
  255.     #先3
  256. box3j = tk.Entry(width=15)
  257. box3j.place(x=470, y=304)
  258.  
  259. boxtext3j = tk.Label(text=u'先3', font=("MSゴシック", "15", "bold"))
  260. boxtext3j.place(x=420, y=300)
  261.  
  262. #採点基準3終
  263.  
  264. box1aval = box1a.get()
  265. box1bval = box1b.get()
  266. box1cval = box1c.get()
  267. box1dval = box1d.get()
  268. box1eval = box1e.get()
  269. box1fval = box1f.get()
  270. box1gval = box1g.get()
  271. box1hval = box1h.get()
  272. box1ival = box1i.get()
  273. box1jval = box1j.get()
  274.  
  275. box2aval = box2a.get()
  276. box2bval = box2b.get()
  277. box2cval = box2c.get()
  278. box2dval = box2d.get()
  279. box2eval = box2e.get()
  280. box2fval = box2f.get()
  281. box2gval = box2g.get()
  282. box2hval = box2h.get()
  283. box2ival = box2i.get()
  284. box2jval = box2j.get()
  285.  
  286. box3aval = box3a.get()
  287. box3bval = box3b.get()
  288. box3cval = box3c.get()
  289. box3dval = box3d.get()
  290. box3eval = box3e.get()
  291. box3fval = box3f.get()
  292. box3gval = box3g.get()
  293. box3hval = box3h.get()
  294. box3ival = box3i.get()
  295. box3jval = box3j.get()
  296.  
  297.  
  298. def create_widget():
  299.     # label1ウィジェット
  300.     Rank1 = tk.Label(text=u'B系', font=("MSゴシック", "15", "bold"))
  301.     Rank1.place(x=80, y=350)
  302.  
  303.     # button1ウィジェット
  304. def button1_clicked():  # button1をクリックした時の処理
  305.     Rank1a["text"] = box1a # メインループの終了
  306.  
  307. button1 = tk.Button(text="いいや!限界だ押すね!", command=button1_clicked)  # command引数にbutton1_clicked関数を渡す
  308. button1.pack()  # button1ウィジェットを配置
  309.  
  310. #順位
  311. Rank1a = tk.Label(text=u" ", font=("MSゴシック", "15", "bold"))
  312. Rank1a.place(x=80, y=380)
  313.  
  314.  
  315.  
  316.  
  317. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement