I\'m using some code I found to create a timepicker widget for tkinter consisting of two Spinboxes (one for hour value and another for minutes value), but when I add behaviour f