#NEWLINE# def unify_button_widths( * buttons ) : #NEWLINE# #INDENT# "Make buttons passed in all have the same width.\n\n    Works for labels and other widgets with the 'text' option.\n\n    " #NEWLINE# wid = 0 #NEWLINE# for btn in buttons : #NEWLINE# #INDENT# wid = max ( wid , len ( btn [ 'text' ] ) ) #NEWLINE# #UNINDENT# for btn in buttons : #NEWLINE# #INDENT# btn [ 'width' ] = buttons