Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MorvanZhou/tutorials
/ print_selection
Function
print_selection
tkinterTUT/tk5_radiobutton.py:16–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
14
l.pack()
15
16
def
print_selection():
17
l.config(text=
'you have selected '
+ var.get())
18
19
r1 = tk.Radiobutton(window, text=
'Option A'
,
20
variable=var, value=
'A'
,
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected