Dynamically Resize Buttons When Resizing a Window - Python Tkinter GUI Tutorial #145

preview_player
Показать описание
In this video I'll show you how to dynamically resize buttons whenever you resize an app Window using Tkinter and Python.

This is a fun one!
Рекомендации по теме
Комментарии
Автор

i don't know how to say Thank you .You made my life exciting. i was missing this feature and i was searching for 1 year, but nothing found .You are great just Love you .
Thank you ❤

nabeelshoukat
Автор

Ah, my man, You made my GUI for xclel a lot prettier. Thank you. Did not know i needed that in my life.

georgikrasnopevtsev
Автор

Your explanation is very good sir I watch your videos daily ☺️

iossamsun
Автор

Wow tkinter has these many abilities ? Thx to codemy for showing this. Your video is always worth watching

rocketleagueshorts
Автор

which video is for doing this with .pack?

c.j.hatton
Автор

Instead of two rowconfigure or loop...we can pass list[0, 1]
Like Grid.rowconfigure(root, [0, 1], weight)

Its easier

darshanpanchal
Автор

hey.. can we do this without sticky?
i mean if i want to make a button in the center with always 50% size. even if we resize the window size, how can we reduce the button size

eldhobabujohn
Автор

Thanks buddy, for simply making my life easier

manishpandey-xkel
Автор

When i try to do this it just says Grid not defined...would appreciate all the help...
Edit-I tried tk window name(root in my case).rowconfigure and columnconfigure and it worked....so if this doesn't work try doing root.rowconfigure and root.columnconfigure

anonymoususer
Автор

Now, with this, how do I make it where my buttons don't stretch to the sides of the window. I'm looking for a dynamic resizing of the buttons and entry fields that are normal sized and aesthetic when a user changes the size of the window.

SpitballStudios
Автор

thanks very much amazing channel and amazing person, can this solve unfit widgets and window on different resolution screens?

ab-jv
Автор

I use place and not GRID what do I do now
And I want the frame to move, not the button

abodeGamessubscribers
Автор

Sir please tell how to resize the text of the buttons also, when we are resizing the buttons.

aayushpatel
Автор

Heelp if i resize it from left side, it works byt if i resize it from another side it doesnt woork, whyyy?
Please help me :c

gabrielbrescia
Автор

I am making a calculator as you suggested in one of your videos and in just a day it's up a running! I manage to do dynamically resize all items in the calculator with this tutorial but I have a problem with the entry. It does resize but when the windows it's too small it reduces the height until I can't read any text on it. Ideally I would need a function that no matter what the height of the entry will always stay the same (while allowing to resize the width). How can I do it?

matteoscalas
Автор

can you do it for dynamically resizing the other tkinter widgets

justyouraverageviewer
Автор

Hello John. I have been working my way through your tutorials on tkinter. They are clear and nicely compact. Each time you introduce a new method for a particular command i.e. Grid.rowconfig, I add it to my notes and to the table of tkinter commands i am compiling. I have been trying to find an online source that has a comprehensive table of ALL tkinter commands, methods, options, and syntax but have been unsuccesful. Every source has only a subset of "common" options. Can you help point this out to us so we can start crossing off the ones covered and experiment with the unfamiliar ones? This might help us give cogent feedback and make requests for topics to cover in future tutorials. The tuts so far are great. The topics are relevant, covered well, and each builds up to the next lesson. Very satisfying and well paced. Thank you.

aliceanderson
Автор

I tried coding dynamically resize buttons when resizing a window using .place or .place_configure instead but didnt work... Do you think its somehow possible to do this using place() rather than row/column? I find place() easy to work with

Ashwin_
Автор

Hi John. Excellent tuts.
Here's a question... In some books they explicitly call classes with Tk. For instance...
button_01 = Tk.Button(text = "blahblahblah")
Is this deprecated? Is it wrong? Did I misunderstand? Or was it a different version of python/tkinter?
I see that ttk classes must use ttk. in front e.g. my_notebook_01 = ttk.notebook()
Can you clarify please?
And thank you again for the fast paced compact tuts.

aliceanderson
Автор

I am making something with a frame in the middle. I'd like to put buttons and labels in it, in an organized way. But when I try to grid them, the frame size changes and the sizes of the buttons and labels are very weird too. Is there a proper way to organize them?

rensgalesloot