Need help in adding button scrolling feature

Hi all,
I am an amateur python developer. I am trying to write a script that completely controls the working of kodi for my purposes. By far, I have written codes to create windows, retrieve video files from remote source and display it in the window. I have created buttons for the thumbnails of each video files. So when the thumbnail is clicked, the video should start playing. So in a window I have to display atleast 100 buttons. Since it will take up a lot more space than in a single window, I need to integrate scroll feature in my window for the buttons. I saw scroll features for lists online but couldn’t find anything for buttons.

Please help.