Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python turtle canvas scrolling

I am using python turtle library to draw a big diagram. Whenever it's drawn the displayed region is the center (i.e. the scrollbar's are in the middle position). I'd like to scroll to the top-left region. Is there any way to do that?

like image 742
fatdragon Avatar asked Oct 23 '25 16:10

fatdragon


1 Answers

Found solution:

ts = getscreen().getcanvas()
ts.xview_moveto(0)
ts.yview_moveto(0)
like image 51
fatdragon Avatar answered Oct 25 '25 04:10

fatdragon