Python Tkinter - Grid Geometry Management - Part 3 -Resizing with columnconfigure and rowconfigure

  Рет қаралды 7,730

Thinking Through Code

Thinking Through Code

Күн бұрын

0:00 Intro
0:34 Why do we Need Rowconfigure and Columnconfigure
3:40 Practical Code - Initializing
4:13 Practical Code - Weight in Columnconfigure and Rowconfigure
6:05 Practical Code - Explaining the Proportions of Different Weight Values
10:29 Outro

Пікірлер: 31
@danricketts2385
@danricketts2385 4 ай бұрын
Its not often you find a KZbin author who can actually teach. From one teacher to another, good work! Please make many many more videos. Perhaps covering Buttons/push buttons/buttons with conditions.
@andromilk2634
@andromilk2634 4 ай бұрын
I fell randomly on your video without knowing anything about it and I found your way of explaning things quite clear. Thanks!
@paullong4086
@paullong4086 2 жыл бұрын
I never quite understood columnconfigure and rowconfigure until I came across your videos. Thank you for doing such a great job of explaining how they work.
@ThinkingThroughCode
@ThinkingThroughCode 2 жыл бұрын
Thank you Paul ! I am so happy to see that my work is useful out there ! :)
@akash604
@akash604 Жыл бұрын
Finally !!!!!!!!!!!!! Found the Perfect video !!! Your way of Teaching is really nice !! Thank you so much !!! I'm so excited to see your Future videos !!
@celalsever5294
@celalsever5294 Жыл бұрын
The best tutorial videos I've found so far. Thank you very much indeed.
@stipepavic843
@stipepavic843 Жыл бұрын
great videos!!!! instantly subed my man
@idopshik
@idopshik 5 ай бұрын
Thanks. I finally understood .
@DaveJohns61
@DaveJohns61 Жыл бұрын
Thanks. Watched all three videos in this subject and thing are now a lot clearer..
@tee-hee9553
@tee-hee9553 2 жыл бұрын
thanks you sir it's really helpful
@ThinkingThroughCode
@ThinkingThroughCode 2 жыл бұрын
Thank you for your comment !
@timoblub4953
@timoblub4953 Жыл бұрын
Very good selection of the topics in that playlist. Thanks for the videos!
@chiemerieokoro3038
@chiemerieokoro3038 Жыл бұрын
Thank you. You are a great teacher
@kiraa_
@kiraa_ Жыл бұрын
i love the indepth explanations, and i have noticed that you are not just briefly touching on, but ure really going indepth with it, sometimes explaining the same thing - again in a differnt way. perfect for a beginner!
@ThinkingThroughCode
@ThinkingThroughCode Жыл бұрын
Thank you Kiraa!
@p12332119
@p12332119 Жыл бұрын
Excellent explanation, keep up the good work!
@ThinkingThroughCode
@ThinkingThroughCode Жыл бұрын
Thank You Joey!
@vpad201
@vpad201 Жыл бұрын
Thank you so much!!!
@johnsharp1481
@johnsharp1481 Жыл бұрын
Amazing videos. Have you thought about doing any work as an Arnold Schwarzenegger voice actor?
@ThinkingThroughCode
@ThinkingThroughCode Жыл бұрын
If i had a prize for the best comment I have gotten so far. You would be winning John. Maybe I would need the biceps to properly get his voice you know ?
@GreenFiro82
@GreenFiro82 Жыл бұрын
👍👍👍👍
@jonahyy
@jonahyy Жыл бұрын
Any chance we can get the source code to this example?
@ThinkingThroughCode
@ThinkingThroughCode Жыл бұрын
Hello Jonah ! Unfortunately I looked over my pycharm files and I wrote over it. I am sorry :/ From now on, I will make sure I put all my files on GitHub when I release my new videos. Thanks for understanding !
@seventfour9247
@seventfour9247 Жыл бұрын
what screen recorder app are you using? :)
@ThinkingThroughCode
@ThinkingThroughCode Жыл бұрын
OBS Studio, great quality !
@Manibutt001
@Manibutt001 Жыл бұрын
Hi wonder if you can help when using tkinter ttk and styles on a Mac we cannot change the background colour on certain widgets like buttons and labels I have searched the internet but no one has an answer that works If I dont use ttk and styles then every thing works on a Mac as it supposed to If you can help it would be super Cheers Mani I am using Mac OSX Catalina version 10.15.7
@ThinkingThroughCode
@ThinkingThroughCode Жыл бұрын
This comment is actually super good because you just demonstrated something that is a common issue in styling widgets. Indeed, both TTK and TK are different when it comes to customizing your final look. I do not think it has anything to do with your machine. When it comes down to it, styles is ONLY useful with TTK. You can use the direct ''background'' option for TK widgets when initializing your widget. Do not try to use styles in a TK widget it will simply not work.
@ThinkingThroughCode
@ThinkingThroughCode Жыл бұрын
Further on, I also want to add that even with styles you got graphical backgrounds in certain widgets meaning that this element will not make the background option effective. I actually did have this problem myself when I was trying to edit the background of an ENTRY widget. I suggest you read the documentation: www.tcl.tk/man/tcl/TkCmd/ttk_label.html In here, you will notice that in the ''STYLING OPTIONS'' section there is a disclaimer saying: ''Some options are only available for specific themes.'' This means that your MAC is using a theme on its own that does not support background change. To fix this, you can actually change your Styles theme. I suggest you do so as described in this article from TkDocs: tkdocs.com/tutorial/styles.html Notice how the page shows you different themes with different colors? Well, it's possible that the default theme on your MAC does not support certain widgets to be changed because they use a graphical background. Here is an exercise for you to debug. After your created your styles object, call out the following line: s = ttk.Style() s.theme_use(''theme_name'') under ''theme_name'' I would try ''clam'' that is the one that I see always works, then you can try different ones and see which one pleases you the most. BUT you will notice that some of them change the background color of certain widgets and some do not. I hope this comment clears things out. It is all in the style theme of your GUI. Luckily, we can change that :) give it a shot. It worked for me! Although I never used a mac, I am pretty sure this can work. Also, read the ''tcl.ttk'' documentation when researching a widget. Honestly, it is one of the best sources for my code! Here is an example of the entry widget, where they did indeed mention a difference in MAC and Windows for the background option. See the STYLING OPTIONS section near the end of the page on this link, where it shows that using ''fieldbackground'' instead of background can help: www.tcl.tk/man/tcl/TkCmd/ttk_entry.html#:~:text=An%20ttk%3A%3Aentry%20widget,option%20and%20xview%20widget%20command. Thank you for commenting I truly appreciate it.
@Manibutt001
@Manibutt001 Жыл бұрын
Thank you for your comprehensive reply yes you are right i didn’t set up a style theme_use(“default”) once I added this code now I am able to change my background colours Thank you so very much for your help God bless
@ThinkingThroughCode
@ThinkingThroughCode Жыл бұрын
@@Manibutt001 you are welcome!
@Manibutt001
@Manibutt001 Жыл бұрын
You found the answer to my question just before I did Well done
Python Tkinter - Creating Labels and Styling - Part 2
20:02
Thinking Through Code
Рет қаралды 1,4 М.
Python Tkinter Project - Restaurant Order System - Part 1 - GUI Frontend
23:05
Thinking Through Code
Рет қаралды 8 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 39 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 12 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН
Python Tkinter - Grid Geometry Management Part 2 - sticky, columnspan, rowspan
14:59
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Python Tkinter - StringVar in Entry Widget and Common Mistakes
15:43
Thinking Through Code
Рет қаралды 3,3 М.
Combining tkinter layout methods (pack + grid + place)
19:31
Tkinter Beginner - Creating Frames and Styling
9:41
Thinking Through Code
Рет қаралды 5 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 348 М.
Using tkinter with classes
28:23
Atlas
Рет қаралды 58 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 39 МЛН