Home > Net >  How can I create a column that is scrollable in PySimpleGUI
How can I create a column that is scrollable in PySimpleGUI

Time:09-25

I'm looking to create a simple menu type thing, where my window is split into 2 halves, and I want the left hand side to be scrollable, but the right hand side to be stationary.

I'm new to PySimpleGUI, and I've looked through the mess that is the docs and it looks like maybe frames might be a good way to go, however I'm not too sure on how I would get a scroll bar. Is it automatic when there's more elements then can fit in the frame, or do I have to have some code that enables it?

CodePudding user response:

If you runs help(sg.Column) then you should see

 __init__(self, ..., scrollable=False, vertical_scroll_only=False, ....)

EDIT:

You have it also in documentation on page Call reference

enter image description here

  • Related