Working with Python, Unhiding a frame depending on numeric value in textbox

I have a Py file that consists of 100+ frames, aprox 80+ radio buttons and 65 textboxes. I have attached shortened exert from main file. Textbox 1 takes on a value when a radio button is pressed. When button "Show Values is pressed it inserts the accumulated of all textboxes and places that value in Textbox 2. When final radio button is pressed it should unhide frame 5.
My problem is with deff onclick 5
I am close to my final stage of this file.
Any help would be appreciated