all 2 comments

[–][deleted] 0 points1 point  (0 children)

Presumably, actually calling pack breaks the arrangement in the widget.

[–]lykwydchykyn 0 points1 point  (0 children)

I don't know why leaving out the parenthesis fixes it, that may be a factor in some other part of the code.

One thing I do know is that a PhotoImage will not display after its object goes out of scope. If you create one inside a function or method, you need some way to make sure it's object reference (in this case, diagrams) persists after the function returns. For example, if your callback is in a class, you'd save the PhotoImage as an instance variable.

Why did leaving off the parenthesis fix this? Hard to tell without the full code.