tkinter 04 Radiobutton 選擇按鈕
阿新 • • 發佈:2018-04-16
sina pack print cti HR imp mman IT you
- 運行結果:http://ww1.sinaimg.cn/large/de060ec1ly1fqedlvhm4ag20fe09eaaf.gif
-
# coding=gbk # 註意:選中按鈕時執行下面的命令,config意為配置 # lable.config(text = "you have selected " + var.get()) # 運行結果:http://ww1.sinaimg.cn/large/de060ec1ly1fqedlvhm4ag20fe09eaaf.gif import tkinter window = tkinter.Tk() window.title("jkn1234") window.geometry(
tkinter 04 Radiobutton 選擇按鈕