FC2ブログ
2019 05 « 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. »  2019 07

ISO/TS 16949 更新 IATF16949

python テスト投稿

kage

2019/06/01 (Sat)

工程内不良集計アプリの一部
 
for i in range(19):
entry.append(tk.Entry(self.main, width=10,text=(i)))
if i == 0:
entry[0]#selectbox-----------------------------------------------------------------------
else:
pass
entry[i].grid(row=3, column=i)
entry[i].delete(0, tk.END)
entry[i].bind("",callback)
#初期値
entry[i].insert(0, '入力前')

lbl = []
for x in range(19):
if x == 0:
lbl_tx = 'サイト'
if x == 1:
lbl_tx = 'GRP'
if x == 2:
lbl_tx = '顧客'
if x == 3:
lbl_tx = '日付'
if x == 4:
lbl_tx = '設備'
if x == 5:
lbl_tx = '部品'
if x == 6:
lbl_tx = '工程'
if x == 7:
lbl_tx = '不良区分'
if x == 8:
lbl_tx = '不良名'
if x == 9:
lbl_tx = '詳細'
if x == 10:
lbl_tx = '個'
if x == 11:
lbl_tx = '量'
if x == 12:
lbl_tx = 'hiritu'
if x == 13:
lbl_tx = '担当'
if x == 14:
lbl_tx = 'act'
if x == 15:
lbl_tx = 'res'
if x == 16:
lbl_tx = 'nglevel'
if x == 17:
lbl_tx = '単価'
if x == 18:
lbl_tx = '損失金'
if x == 19:
lbl_tx = 'created'

lbl.append(tk.Label(self.main, text=lbl_tx))#カラム#"サイト"
lbl[x].grid(row=2, column=x)