I have asked the user to enter a value pertaining to how many driver bits they need which is an integer from 1 to 71. But the
layouts = [
[ # Layout 0
[sg.Text('How many driver bits do you need? (Enter a number between 1 and 71)')],
[sg.Input(key='-IN0-', expand_x=True, enable_events=True)],
[sg.Text('', size=(20, 1), key='-OUTPUT0-')],
[sg.Push(), sg.Button('Next >', key='Next 0')]],
I have shown the statement that I used to take the user input and store it in the variable -IN0-
innie = int(values["-IN0-"]) ######
numfiles = int(innie % 8)
open_output_files(numfiles)
I am trying to parse the value that the user entered in -IN0- and do a mod 8 and then execute a function with the following value that results from mod. What would be the correct way to have the variable stored to access it later.
Thank you to Jason who has helped me resolve many of the issues I have faced throughout creating this program