#NEWLINE# def __choiceboxGetChoice( event ) : #NEWLINE# #INDENT# global boxRoot , __choiceboxResults , choiceboxWidget #NEWLINE# if __choiceboxMultipleSelect : #NEWLINE# #INDENT# __choiceboxResults = [ choiceboxWidget . get ( index ) for index in choiceboxWidget . curselection ( ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# choice_index = choiceboxWidget . curselection ( ) #NEWLINE# __choiceboxResults = choiceboxWidget . get ( __choiceboxResults ) #NEWLINE# #UNINDENT# boxRoot . quit ( )