Figures don't keep a reference to widgets.

This turned up when I generated blowups of portions of a thumbnail image by clicking on various locations. The blowups contained a button, but the button was inoperative. My guess is that when the click handler that created the blowup exited it took the button object with it. My workaround was to create the various button handlers in the Button init method so that they hung onto a reference to self. This may not be the best approach so I’ve attached a file for discussion.

Chuck

widgets.py (2.99 KB)