?? radiobutton2.py
字號:
from Tkinter import *
root = Tk()
root.option_readfile('optionDB')
root.title('Radiobutton')
cheese=[('Red Leicester', 1), ('Tilsit', 2), ('Caerphilly', 3),
('Stilton', 4), ('Emental', 5), ('Roquefort', 6), ('Brie', 7)]
var = IntVar()
for text, value in cheese:
Radiobutton(root, text=text, value=value, variable=var,
indicatoron=0).pack(anchor=W, fill=X, ipadx=18)
var.set(3)
root.mainloop()
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -