]>
vault307.fbx.one Git - mu_code.git/blob - tkinter3.py
4 value
=int(lbl_value
["text"])
5 lbl_value
["text"]=f
"{value+1}"
8 value
=int(lbl_value
["text"])
9 lbl_value
["text"]=f
"{value-1}"
13 window
.rowconfigure(0, minsize
=50, weight
=1)
14 window
.columnconfigure([0,1,2], minsize
=50, weight
=1)
16 btn_decrease
=tk
.Button(master
=window
, text
="-", command
=decrease
)
17 btn_decrease
.grid(row
=0, column
=0, sticky
="nsew")
19 lbl_value
=tk
.Label(master
=window
, text
="0")
20 lbl_value
.grid(row
=0, column
=1)
22 btn_increase
=tk
.Button(master
=window
, text
="+", command
=increase
)
23 btn_increase
.grid(row
=0, column
=2, sticky
="nsew")