Scrollable Frames!! - Tkinter CustomTkinter 8

preview_player
Показать описание
In this video I'll show you how to use scrollable frames with CustomTkinter and Python.

In regular Tkinter, you need to add a scrollbar to a frame to make it scrollable, but in CustomTkinter there's a widget that comes with a scrollbar!

So no extra coding! Let's dive into it!

#tkinter #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:25 - Create Scrollable Frame
2:06 - Add Buttons
3:46 - Change Scrollbar to Horizontal
5:18 - Change Height/Width of Frame
5:43 - Add Frame Label
6:13 - Change Label FG Color
6:41 - Change Label Text Color
7:03 - Change Label Font Size
7:22 - Change Label Text Position
8:28 - Change Frame Border
9:04 - Change Frame Border Color
9:43 - Change Frame FG Color
10:05 - Change Scrollbar FG Color
10:41 - Change Scrollbar Button Color
11:06 - Change Scrollbar Hover Color
11:40 - Change Frame Corner Radius
13:00 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch CustomTkinter Playlist ✅ FREE Tkinter Widget Book
▶ See More At: ✅ Subscribe To My YouTube Channel:
▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
▶ Get The Code For This Video

TkinterPython
Автор

You are a godsend, I have been fighting with scrollable on TK for weeks, trying all sorts of different things to get it to work. My structure was already prepared for scrollableframe from CTK so simply changing from frame fixed my issue!

Ev-
Автор

I am doing self-learning, and I have completed many tasks using your channel. i am looking out for projects and wish to work with experts

sulaimonmueezoluwaseun
Автор

wow, so much better than tkinter. no messing around with multiple frames and using canvas and binding and configuring, etc. I got it to work with Tkinter. Your other video on this is very good btw. I am just doing basic stuff, displaying dataframes as tables in pop out top level windows, etc. But when I wanted to freeze the top row and first column of a table, similar to what you can do in the View tab of MS Excel, things got super complicated. there are just too many moving parts to make real applications in tkinter. so much work for just a scroll bar. it should be way simpler, like in this vid. I will give custom tkinter a go thanks to this nifty video! always super enlightening content. learned a lot about coding from you, thanks!

YusifRefae
Автор

Hi, thanks for the video! After assigning different text to each button, I'm having trouble using .get or .cget to retrieve the text from the clicked button in the scrollable frame(so the text can be either printed or used in a function) I have OOP code that can do it but I can't reproduce it with functional programming which is the format I need it in. Any help would be greatly appreciated.

SPTutor-ln
Автор

can i have a scrollable frame with both orientations?

joelale
Автор

Thank you so much! Is there a function or way to hide/show the scrollbar? It'd be great if I can have the scrollbar show up if only a certain amount of buttons are on screen for example.

Golden_Hephaestus
Автор

When scrolling the scrollableframe, my buttons are flickering extremely badly. Is there any way i can fix this?

OhNanoh
Автор

how to destroy or delete scrollable frame? I'm trying to do frame.destroy() but it doesnt work...

yuuyaokatani
Автор

Hi John! I've been trying to get into learning tkinter and customtkinter so I can create a GUI for a project of mine. I've having trouble finding solutions for creating a layout it which I can have widgets side by side, as opposed to stacked on top of each other (for example, a textbox on one side displaying information relevant to the button clicked on from either a combo box or scrollable frame that's next to it). I'm pretty sure it's something farily simple to implement, however I'm not exactly sure how to go about it. If you could do a tutorial on how to do this, it would be much appreciated!

bassycounter
Автор

I want to scroll frame by mouse wheel. Is it possible? Can you show an example?

amazing_sport
Автор

how to change the scroll speed of the CTK scrollable frame? it's very slow. I was able to bind it to key up and down and make the speed 200-300 for better response. But failed using MouseWheel to bind it. Still too slow. Looked through CTK documentation and there's no property for controlling to speed or increment of the scroll bar. any thoughts? Am I the only OCD person who's annoyed by the slow scroll on this frame? hahaha. Thanks!

YusifRefae
Автор

Hi, I have a problem trying to change the height of the CTkScrollableFrame because it does not change it, I have tried several small sizes, which is what I need, and it does not do it, is there any way to force it to a small size like 100 or 50?

MiguelPerez-ptcl
Автор

Hello! When I add widgets into my frame, the frame shrinks to wrap around them, how do I make it so it doesn't do this?

Raining_Needles
Автор

how can we use scrollable frames in a dropdown menu?

sachi-gwlw
Автор

Is it possible to have both vertical and horizontal bars?

ve