Commit 3df64ede by BellCodeEditor

save project

parent 4e255c25
Showing with 1 additions and 1 deletions
...@@ -7,7 +7,7 @@ canvas.place(x=0, y=0) ...@@ -7,7 +7,7 @@ canvas.place(x=0, y=0)
# ++++++++++++++++++++++++++++++++++++++++++++++++++++ # ++++++++++++++++++++++++++++++++++++++++++++++++++++
def func(): def func():
num = v.get() num = v.get()
print("你选择了:","num") print("你选择了:",num)
v = tkinter.IntVar() v = tkinter.IntVar()
rb1 = tkinter.Radiobutton(root,text='体育',value=1,variable=v,command=func) rb1 = tkinter.Radiobutton(root,text='体育',value=1,variable=v,command=func)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment