Jeff
Jeff

Reputation: 13

How to programmatically get scrollbar to botton of canvas - tkinter

I am trying to programmatically set the vertical scrollbar to the bottom of the canvas. (The vertical scrollbar appears after many rows of widgets are added to the GUI and the vscrollbar works as desired.) Any suggestions?

Upvotes: 1

Views: 627

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 385860

You can use the yview_moveto method to adjust the view in the y direction:

self.canvas.yview_moveto(1.0)

Upvotes: 3

Related Questions