question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ScrolledFrame doesn’t seem to work as aspected

See original GitHub issue

To test the ScrolledFrame widget i’ve wrote the follow code:

from ttkbootstrap import *
from ttkbootstrap.scrolled import ScrolledFrame


class MainView(Window):
    def __init__(self):
        super(MainView, self).__init__()

        sf = ScrolledFrame(self)
        for i in range(20):
            Label(sf, text=f"Label {i}").pack()
        sf.pack(fill=BOTH, expand=True)


if __name__ == "__main__":
    app = MainView()
    app.mainloop()

and this was the output: sf_error as you can see the Scrollbar wasn’t showing the right proportion.

I used

  • ttkbootstrap 1.5.1
  • Python 3.8.3
  • Windows 10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
lolghuiy4tgfyu4th7tvtgcommented, Feb 8, 2022

Well, it works now. Thanks for fixing it!

1reaction
Funpy97commented, Feb 3, 2022

@israel-dryer I updated and tested the same code and now it works. You are doing a great job around tkinter!

Read more comments on GitHub >

github_iconTop Results From Across the Web

DirectOptionMenu's "cancelFrame" doesn't work ... - GitHub
Simply put, if a DirectOptionMenu is placed on the canvas of a DirectScrolledFrame, one can no longer click outside of the menu to...
Read more >
Scrollbar widgets won't work when laid out in a grid
So when I use .grid() to layout the scrollbars, the space under the vertical scrollbar does indeed appear as I'd expect it to,...
Read more >
Scrolling Scrollers via the Mouse-wheel - Panda3D
It can be quite convenient to move around scrollable areas via the mouse-wheel. And indeed, this can be achieved via binding a given ......
Read more >
Scrollutil Programmer's Guide
The scrollutil::scrollableframe widget is similar to BWidget ScrollableFrame and iwidgets::scrolledframe. However, unlike these widgets, which use a canvas ...
Read more >
1350925 - [css-grid] A grid with overflow:auto in limited height ...
Actually, both scrollbars appear, then you continue resizing, and the horizontal scrollbar disappears. Expected results: No horizontal scrollbar should ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found