Creating animated widgets in tkinter

preview_player
Показать описание
This video will cover animated widgets in tkinter. We will create an animated button and an animated sidepanel that can contain any other widget. Furthermore, I will go into depth on the theory behind the animations.

You can get the code here:
Рекомендации по теме
Комментарии
Автор

Your videos are an absolutely fantastic resource for someone like me. Greatly appreciate the effort and time you put in here!!👏🏼👏🏼

EmptyPantryEntrees
Автор

19:22 When my full attention was on this and sir you pressed the button and this button itself started moving to the right, I could not stop laughing.
.
Sir you are really awesome and humble.❤

sonu-jangir
Автор

🎉Thanks for the informative videos, they are well presented and very easy to understand. The best I've come across so far. Thanks for the effort you have gone to. 😊

mrdave
Автор

This is a great tutorial. While I kinda understand the logic of tkinter I feel I need to improve my knowledge in OOP. There's still a few things that I don't get properly.

elevendarter
Автор

That's pretty dang cool, thank you!

JM_Tushe
Автор

If you're constrained to use the place method, your widget's position is absolute, meaning the window might not be resizable. Additionally, if you resize the window, the widget may not adapt to the new size. Is this correct? Is there a solution for this?

Nicco
Автор

Having real dramas not getting the slide panel to stick to the frame during resizing etc. If i resize or click on the main window - the panel drops to the back. If i drag the window right - It drops behind the root window. Bloody annoying

nui
Автор

Thank you so much. It is very useful and easy to understand.

pepe
Автор

Great video! Really helpfull and very clearly explained. I however have been dealing with some issues with animation and functions in general that I don't notice happening to you. Basically, running any function complitely freezes the app until the code in that function is over. Animation just won't render, in this case the button will move to the last position after some time. To solve this I've started using threading to separate the mainloop function and any other function triggered by the widgets, but I'm really curious as to why you don't seem to have this same issue. Anyway, thank you so much for the lesson!

hugoostiz
Автор

what happened To CLEAR CODE ?? I really love your style of teaching, are you have more channels ??

xzex
Автор

this animated sidebar is in the back of window elements like frame and label, so you can't use it on another window with content.
anyone has any solution for that?

omid
Автор

I build a mine sweeper game with CTk, and instead of mine cells I choosed the picture of the dictator of Iran (the most hated children killer) pops out in the Button, But I Thinking if I Find a way that widget expand to all the frame . after all the game is ending when you capture one Ayatollah. and this give me an Idea to how pop-out an animated picture of him filling the whole screen

xzex
Автор

Question, I have a Frame, and in this frame color is black, but when I put Button in it ( I Don't know if the size of it is related or not ) but the frame color will change to grey ( Default color of the CTk.Frame . an Any one help me with that ?? ( only with Grid) The CODE IS LIKE THIS
class Cell creates Buttons and I use this class to create N*N grid Button, but my frame color will affected if I use Grid

for x in range(s.GRID_SIZE):
for y in range(s.GRID_SIZE):
c = Cell(x, y)

c.cell_btn_object.grid(
row=y, column=x
)

xzex
Автор

what about interpolation? the animations you showed were all linear.

redpz
Автор

please tell me how i can change the background colour of frame?

Pranjalrocks