Skip to content

How to set a maximum limit for dragging in tkinter PanedWindow?

In the above code, I don’t want the frame1 to expand too much when dragged. How can I set a limit for this? Answer There are no straightforward ways to do this. You can achieve this either by setting minsize for frame2. Something like this: Another way is to return “break” when the sash posi…