I'm working on a scrolling list of Checkbuttons
using the technique from this post.
I've noticed that the created windows within the Text
widget will sometimes "spill over" the top and bottom borders of the widget itself:
Obviously it doesn't stop the widget from doing its job, but it just looks sloppy, and I tend to be picky about such things.
Tweaking the height of the widget can reduce the instances of it, but doesn't stop it from happening. The pady
setting doesn't help either, as it is only applied to the absolute top and bottom of the entire contents (vs. the currently-visible portion).
I even tried switching to a Canvas
instead of a Text
widget, but the same spillover occurs, even when I use yscrollincrement
to gain full control over the scrolling behaviour.
Is this just a limitation of Tkinter, or is there some other setting or a clever approach that I'm missing?
In case it matters, my environment is Python 2.7.6, on Windows 7.