Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollable boxes (really a box inside a scrollable canvas) #463

Open
cpitris opened this issue Dec 12, 2022 · 0 comments
Open

Scrollable boxes (really a box inside a scrollable canvas) #463

cpitris opened this issue Dec 12, 2022 · 0 comments

Comments

@cpitris
Copy link

cpitris commented Dec 12, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant