radio buttons triggers its command handlerpops up one of the standard dialog boxes we met earlierand automatically deselects the button previously pressed like check buttonsradio buttons are packedthis script packs them to the top to arrange them verticallyand then anchors each on the northwest corner of its allocated space so that they align well figure - demoradio in action like the check button demo scriptthis one also puts up state button to run the class' report method and to show the current radio state (the button selectedunlike the check button demothis script also prints the return values of dialog demo calls that are run as its buttons are pressed here is what the stdout stream looks like after few presses and state dumpsstates are shown in boldc:\pp \gui\tourpython demoradio py you pressed input result input you pressed open resultc:/pp thed/examples/pp /gui/tour/demoradio py open you pressed query resultyes query radio buttons and variables sowhy variables herefor one thingradio buttons also have no "getwidget method to fetch the selection in the future more importantlyin radio button groupsthe value and variable settings turn out to be the whole basis of single-choice behavior in checkbuttonradiobuttonand scale