You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Excellent job with guizero! I love it! I have one suggestion that I think people might find very useful: scrollable boxes!
In tkinter you can scroll a frame if you place it inside a scrollable canvas. With some help from Youtube, I got so far:
MyCanvas=tkinter.Canvas(MyWindow.tk)
MyScroll=tkinter.Scrollbar(MyWindow.tk, orient=tkinter.VERTICAL, command=MyCanvas.yview)
MyWindow.add_tk_widget(MyScroll, align="right", height="fill")
MyWindow.add_tk_widget(MyCanvas, width="fill", height="fill")
MyCanvas.configure(yscrollcommand=MyScroll.set)
MyCanvas.bind("", lambda e: MyCanvas.configure(scrollregion = MyCanvas.bbox("all")))
But now I am not sure how to add a Guizero box in it!
The text was updated successfully, but these errors were encountered:
Hi,
Excellent job with guizero! I love it! I have one suggestion that I think people might find very useful: scrollable boxes!
In tkinter you can scroll a frame if you place it inside a scrollable canvas. With some help from Youtube, I got so far:
MyCanvas=tkinter.Canvas(MyWindow.tk)
MyScroll=tkinter.Scrollbar(MyWindow.tk, orient=tkinter.VERTICAL, command=MyCanvas.yview)
MyWindow.add_tk_widget(MyScroll, align="right", height="fill")
MyWindow.add_tk_widget(MyCanvas, width="fill", height="fill")
MyCanvas.configure(yscrollcommand=MyScroll.set)
MyCanvas.bind("", lambda e: MyCanvas.configure(scrollregion = MyCanvas.bbox("all")))
But now I am not sure how to add a Guizero box in it!
The text was updated successfully, but these errors were encountered: