Learn Tkinter in 20 Minutes

  Рет қаралды 561,393

Teacher of Computing

Teacher of Computing

Күн бұрын

Пікірлер
@onceonly1111
@onceonly1111 5 жыл бұрын
This was a very helpful introduction for tkinter. Here are some things I discovered while fiddling around: - Button(window, text=" ", width=0) a width of zero will automatically size the button to fit the number of characters in text=" " so it will always be large enough if it says "Submit" or "Submitttttttttttttttttttttttttttttt" - in the definition for click(), comment out #output.delete(0.0, END). Now the text will stay in the output box when click submit. Now go to output = Text() and change wrap=WORD to wrap=CHAR and click the submit button a few times. You can see how words are treated when they reach the edge of the line in the output box. - under window= Tk() type in window2= Tk(). Now for the output box, change output = Text(window) to output = Text(window2) but leave everything else as is. This will open a separate window for the output box, when you click submit the in one window, the output will display in the second window.
@nanaabenanyamekye9708
@nanaabenanyamekye9708 5 жыл бұрын
Your comments are very helpful. Thanks
@nihaalxc9607
@nihaalxc9607 3 жыл бұрын
I know its been over an year, but why put width=0, just dont put width at all, itll resize automatically. Do not use two Tk() as it will lead to many other issues if you don't handle it well
@mews75
@mews75 2 жыл бұрын
Haha good job. Just don't use two Tk() without handling it properly
@rattatteb
@rattatteb 5 жыл бұрын
If you want to learn it even faster than 20 minutes put the video on 1.25/1.5 speed
@AhcMeUk
@AhcMeUk 5 жыл бұрын
Hahahaha good tip to save time.
@barkeeper7887
@barkeeper7887 5 жыл бұрын
1.25 is best
@cavidmirzyev3866
@cavidmirzyev3866 5 жыл бұрын
actually i'm doing this for a while and it's very useful.
@omiorahman6283
@omiorahman6283 5 жыл бұрын
Lol true
@shubhamsalgaonkar2156
@shubhamsalgaonkar2156 5 жыл бұрын
did the same... (1.5x)
@namnenergy6514
@namnenergy6514 5 жыл бұрын
I love how you periodically check your work by running the program. Certain other unmentionables on KZbin do not do this and their code ends up with obvious errors. Kudos
@thatsme1268
@thatsme1268 2 жыл бұрын
At 61 years old I needed something like this to help me understand the Raspberry Pi GUI and to get me started on my way to develop my visual outputs instead of just using console applications . Too many videos on uTube forget that yes there are users out there who have maybe (later in life) made the transition away from Microsoft's visual environment (after 20 years) to Python. Also, other 'authors' either don't provide any commentary (but substitute it with irritating canned music), speak too fast and really do not explain exactly what they are doing, provide far too complex examples or don't run their efforts to show outputs. Many thanks for this video found "by chance" and I have subscribed now. Hopefully I will be able to find your other video on exact placement of graphical elements?
@stephenmoran2643
@stephenmoran2643 4 жыл бұрын
Ty for the quick tutorial. Gave me enough info to play around and study. Starting learning how to code from square 1 about 2 months ago. I wrote all my backend code and now it's time to build a gui around it.
@Circuit_Whisperer
@Circuit_Whisperer 5 жыл бұрын
I have been trying to learn TK for a couple days now, and your tutorial made more progress in my studies than I could ever hope to do on my own!
@Tovin
@Tovin 7 жыл бұрын
This is great! While not how my teacher went on to teach it, this is what it took for me to really understand and get into tkinter! Thank you so much!
@rivermishow4678
@rivermishow4678 6 жыл бұрын
Thank you so much for this tutorial! It was informative, easy to understand, and kept the lesson from feeling at all overwhelming!
@maxniemi4584
@maxniemi4584 2 жыл бұрын
btw, you can put quotation marks around the "click" in command=click to make it work without defining a function. However you can't make a lot of the other stuff
@BashGraphics
@BashGraphics 4 жыл бұрын
best video ever on Python GUI.. I created a GUI software for BMI Calculator using your technique..
@adarshtiwari7395
@adarshtiwari7395 4 жыл бұрын
Probably the most easiest and effective explanation for GUI out there. Thank you👍🍻
@AhcMeUk
@AhcMeUk 4 жыл бұрын
Glad it was helpful!
@jaketrap
@jaketrap Жыл бұрын
You killed it. I’ve been trying to get into this for a long time
@matthewamstutz8889
@matthewamstutz8889 5 жыл бұрын
If anyone is having problems getting your image to come up or having problems importing tkinter, import like this (without quotes) "import tkinter" (NOTE: for python < 3 use import Tkinter [might work the way his is but mine is 3 and i had problems with it] if you have python >= 3 use "import tkinter") for python3 they changed a few things. The image had to be declared like this for me (without quotes) " photo1 = tkinter.PhotoImage(file="File Path Here [i.e /home/your username/Downloads/file_name.gif) Label also had to had to be used by " tkinter.Label(arguments) Good video though, this guy simplifies it pretty well, I was on a video yesterday and the dude was importing PIL and making classes and such. He was flying through pretty quick, got from class declaration of the window all the way to declaring the functions for the buttons without really explaining what was happening.
@waitesdennis
@waitesdennis 4 жыл бұрын
This has been such a help to me! I've just created something for work that has saved me so much time! Granted i didnt really need a GUI but it looks good and is helpful for my colleagues that don't know how to use python. Keep up the great work.
@AhcMeUk
@AhcMeUk 4 жыл бұрын
Wonderful!
@VivekKumar-mi3fh
@VivekKumar-mi3fh 6 жыл бұрын
Thanks! It’s helped me to learn in less time. Request you to add your code in description section. It will be helpful for practice. If possible please add some project. It will help beginners like me to get confidence in python programming.
@leobone3810
@leobone3810 5 жыл бұрын
Thank You. I got Computer Science for a GCSE and have been interested in the non-modular section of Python, but never really studied TKinter. :)
@ziomekziomutek4491
@ziomekziomutek4491 2 жыл бұрын
watching in 2021 and everything still works, thanks for help man
@abianchi0226
@abianchi0226 5 жыл бұрын
Very clear explanation. Love the British accent!
@omiorahman6283
@omiorahman6283 5 жыл бұрын
me 2
@frankarkwright1977
@frankarkwright1977 4 жыл бұрын
Hi, Thanks a very good tutorial. I taught ICT for over 20 years, and I think the level of description was just right. Sometimes teachers can explain too many things that get in the way.
@irvpaton8626
@irvpaton8626 2 жыл бұрын
This is as good as it gets. You make this complex subject very approachable.
@jozbornn
@jozbornn 4 жыл бұрын
This was exactly the crash course I needed. Thanks so much for putting this video together!
@msctube45
@msctube45 4 жыл бұрын
This video was outstanding in the organization of the tutorial and in the clear explanation of the substance. Great job!
@shruto118
@shruto118 3 жыл бұрын
if you want to resize the text box in python i recommend doing (if py true == pc + big + window)
@tjb3171
@tjb3171 7 ай бұрын
finally, someone who goes through this in less than a million hours!!
@CornyFlakez
@CornyFlakez 6 жыл бұрын
2:22 how does tkinter know where the gif is? Does it have to be in a specified directory? Sorry, I'm new...
@AhcMeUk
@AhcMeUk 6 жыл бұрын
Make sure it is in the same folder as your.. Py file
@saatvikgupta_0208
@saatvikgupta_0208 3 жыл бұрын
We can use the PyDictionary module in it to create a real working dictionary rather than typing ourselves though it would require an internet connection to work.
@opie32958
@opie32958 7 жыл бұрын
Great job. I could tell you knew exactly what you were going to do before you even started recording. I hate when someone gets five minutes into a video and then says, "Oh wait, that example won't work, let me start over."
@donbrandon2734
@donbrandon2734 5 жыл бұрын
Thanks for this. This gives a good view of how the framework of the tkinter module works. I think I can read the directory and figure the rest out from there.
@tobiaskarl4939
@tobiaskarl4939 5 жыл бұрын
Very amazing tut. Thx. Very good. As english non-native speaker/listener it takes a little time to guess what you did say. Look this video with english auto subtitles on and you see what I mean. Google also has problems to understand ... you say "blaaee" and you mean "bluuuuu" for blue But at the end I understand all ... but is a challenge ... lol
@omiorahman6283
@omiorahman6283 5 жыл бұрын
yeah that happens Different accents and all
@davidtrimbee2016
@davidtrimbee2016 5 жыл бұрын
Very well done, love the pace of the work. Gives me a great start.
@apoorvxx
@apoorvxx 5 жыл бұрын
Well you made it look way easy. I mean it is easy to create all those labels and button but the explanation will help in executing the code through the gui. This was good :)
@CeeTee469
@CeeTee469 4 жыл бұрын
Nice pace. One of the few coding videos i like. Send the link for the code.
@christianconsen3759
@christianconsen3759 6 жыл бұрын
Helped me understand Tkinter a lot better. Thank you! :)
@MrBubbagump58
@MrBubbagump58 5 жыл бұрын
I'm grabbing the concept of Tkinter programming pretty well. What I haven't run across yet, is a good reference for all the methods and attributes, particularly of class Tk(), but, for the widgets as well.
@WisdomofHal
@WisdomofHal 5 жыл бұрын
You may want to go read up on the documentation you can go to the python website, or dozens of other documentation websites
@markday9620
@markday9620 4 жыл бұрын
Excellent presentation. One of the best that I have watched!
@par-th1
@par-th1 4 жыл бұрын
You can also use expand = True so the text will expand
@o1techacademy
@o1techacademy 4 жыл бұрын
I learned a lot from this tutorial. Thank you very much.
@evofoxxx2477
@evofoxxx2477 6 жыл бұрын
Thanks a lot! Your video really helped me with Tkinter, which I didn't really understand before! Keep up the good work!
@amiraliqadri
@amiraliqadri 5 жыл бұрын
What is it with your icon
@daziwg456
@daziwg456 4 жыл бұрын
By far the best descriptive video I've watched on Tkinter , I had my Window up and running in 20 mins after watching this , awesome job , quick question though ..how would you put 2 data entry points on the same line with a ":" in between them ??
@Sebastian-42-69
@Sebastian-42-69 2 жыл бұрын
This is really great! You're great at explaining and the tutorial is very efficient! I enjoyed the tutorial!
@RAHULNAIK03
@RAHULNAIK03 4 жыл бұрын
Very well explained.. thanks for this video..
@lenael4747
@lenael4747 4 жыл бұрын
I love the way you explained. it is way too convenient for me. thanks for the video ^ ^
@omiorahman6283
@omiorahman6283 5 жыл бұрын
Not all heroes wear capes
@thezerocool22
@thezerocool22 6 жыл бұрын
great straight to the point tutorial, I think I can use this as a teaching resource for pupils. I found the zooming on the code annoying, and it would be really useful to have a bit.ly link to the source code for a cheeky C&P, even if its just the starter pseudocode comments, that might increase engagement.
@omiorahman6283
@omiorahman6283 5 жыл бұрын
thats the same reason i like it
@smeetnilvarna
@smeetnilvarna 6 жыл бұрын
This was a great video sir ! Was looking for a video like this from very long ! Thank you so much !
@hbade4020
@hbade4020 3 жыл бұрын
Thanks for this! Is there any documentation with all the class attributes and methods? Cheers
@erikekelund3428
@erikekelund3428 6 жыл бұрын
I can't seem to add any picture or even change the color of the background. Checked the code 100 times, there's no difference between yours and mine. Could it be somthing under the hood?
@jcsmith9518
@jcsmith9518 4 жыл бұрын
This was good and reminded me of HTML syntax I've used to specify windows, ect. Thank you!
@matthewfelgate
@matthewfelgate 3 жыл бұрын
Thanks for the introduction to TKinter.
@Gladiator-wy5qb
@Gladiator-wy5qb 4 жыл бұрын
Great tutorial... Nothing better than this 😁😁😁
@rishabhsagarmagics
@rishabhsagarmagics 4 жыл бұрын
Nice thanks good learning video....
@Abdul-Farooq
@Abdul-Farooq 3 жыл бұрын
This was amazing, pleas tech more about tkinter😇😇
@TheStarCycle
@TheStarCycle 6 жыл бұрын
Very simply explained - perfect for what I was looking for, thanks!
@MrStudent1978
@MrStudent1978 6 жыл бұрын
Very nice! Thank you very much for sharing such a video....your style is really nice!
@chisomodimmegwa3479
@chisomodimmegwa3479 4 жыл бұрын
EXCELLENT TUTORIAL!
@zafarhzhzhz2873
@zafarhzhzhz2873 5 жыл бұрын
very nice tutorial
@a2mmagna949
@a2mmagna949 5 жыл бұрын
Mr Zamans Class is amazing with this guy involved
@johnhutchinson9445
@johnhutchinson9445 7 жыл бұрын
This is concise & well thought out, thank you so much for this tutorial. I'm trying to work out how to get the user to add new words and definitions to the glossary. Do you have any ideas for how this could be done?
@dp0813
@dp0813 6 жыл бұрын
The PhotoImage class can read GIF and PGM/PPM images from files. To read other formats, you need to import the Python Image Library (PIL) and use that to convert images to a format Tkinter can handle. Example from effbot.org/tkinterbook/photoimage.htm: from PIL import Image, ImageTk image = Image.open("lenna.jpg") photo = ImageTk.PhotoImage(image)
@robinrochan9301
@robinrochan9301 4 жыл бұрын
thank you very interesting
@big_cheese2162
@big_cheese2162 4 жыл бұрын
Great tutorial, thank you very much
@AhcMeUk
@AhcMeUk 4 жыл бұрын
You are welcome!
@kelvinchikezie9370
@kelvinchikezie9370 4 жыл бұрын
This is some teaching yah! Thanks mate. I gained some clarity
@orionconner00
@orionconner00 6 жыл бұрын
simple yet informative....good work
@harrysstuff247
@harrysstuff247 5 жыл бұрын
Seriously, thanks for this video, helped me a lot!
@BloxsterClips
@BloxsterClips 2 жыл бұрын
How do you get images to overlap? It only snaps to place for me.
@playervsk
@playervsk 5 жыл бұрын
thanks! I try to develop OS! This video was VERY useful!!!!
@movielover7795
@movielover7795 6 жыл бұрын
good job! learnt alot from this maybe you should start doing programming tutorials except python of course
@AhcMeUk
@AhcMeUk 6 жыл бұрын
What sort of vids would you like?
@husseinabukar7081
@husseinabukar7081 3 жыл бұрын
Thanks and good work for your dedications, I would say if you could link your code it will be very helpful.
@cafeespresso99
@cafeespresso99 3 жыл бұрын
Thank you, this is useful. I'm new to Python (strong background in VBA) and currently trying to decide whether to dive straight into PyQt, or to start with Tkinter and then move onto PyQt. Tkinter seems easier to use, but perhaps not as rich in widgets, so I'm tempted to start with Tkinter until I outgrow it. Has anyone else had the same decision to make and do you have any advice/comments? Thanks.
@jesuisravi
@jesuisravi 2 жыл бұрын
Very nice. Is this dictionary infinitely expandable?
@LorenzWittenberg
@LorenzWittenberg 5 жыл бұрын
Nice introduction to tkinter! Thanks man!
@mathhubnigeria4072
@mathhubnigeria4072 4 жыл бұрын
great videos
@CarlFritz24
@CarlFritz24 3 жыл бұрын
Good. Better over all... give us the code in the description window of yours. Then we could run it and see if everything is alright in our computer. Really good it would be.
@AhcMeUk
@AhcMeUk 3 жыл бұрын
Code it and you learn more....
@aftabuddinahmed9101
@aftabuddinahmed9101 3 жыл бұрын
You are a legend (I am not asking I am telling)
@benjamincalloway
@benjamincalloway 2 жыл бұрын
4:30 In latest version of python (as of sep 2022), it should be 'sticky="W"', instead of 'sticky=W'. Else it throws a NameError
@HassanTofaha
@HassanTofaha 6 жыл бұрын
you are very organised teacher, thanks
@joshheim8599
@joshheim8599 6 жыл бұрын
Great tutorial! Thanks!
@goat86
@goat86 3 жыл бұрын
Thank you so much 🙏
@ludwighurtado1719
@ludwighurtado1719 5 жыл бұрын
Great Video Thank You So Much !!!!
@goldengameplay2944
@goldengameplay2944 3 жыл бұрын
Amazing tutorial 10/10
@prjwl1
@prjwl1 7 жыл бұрын
Thank you very much for the excellent tutorial
@vircycure
@vircycure 6 жыл бұрын
Awesome teaching sir... Thank you
@EverythingRox
@EverythingRox 4 жыл бұрын
How to switch to different pages if I click a button. For Example if I click 'about us' I want another page to open in the same window. If u cud link the video, or tell me it would be of great help. Awesome tutorials btw.
@superumesh777
@superumesh777 6 жыл бұрын
helpful straight to the point
@joudialmanei9729
@joudialmanei9729 4 жыл бұрын
What's the visualizer you're using?
@ziasabri2003
@ziasabri2003 3 жыл бұрын
where shall we add the photo file .to open it with the tKinter.Should we add it in the folder where the file of python is.
@roubarizkallah2172
@roubarizkallah2172 3 жыл бұрын
Yes
@steviecb
@steviecb 7 жыл бұрын
Hey great job! Easy to follow. I recommend watching thenewboston then this video to understand the syntax of tkinter better :). Great video tho
@anshumans1174
@anshumans1174 6 жыл бұрын
I downloaded a gif image and it does not show on the screen. I get an error saying that there is no such file or directory. All the syntax is correct. Any help? edit: I saw Daniel G's comment earlier. I do not know how to move the gif file to the same folder my python file is in. I am using pycharm with python 3.6. edit: I figured it out :) Thanks for the great tutorial.
@AhcMeUk
@AhcMeUk 6 жыл бұрын
Glad you solved it.
@uniquefirearmsolutions3564
@uniquefirearmsolutions3564 5 жыл бұрын
@@AhcMeUk I cant get the image to show up, I have a .gif, and it is saved in the same folder as the program??
@zoltantoth6015
@zoltantoth6015 4 жыл бұрын
@@uniquefirearmsolutions3564 same is not working for me
@danrobert7241
@danrobert7241 2 жыл бұрын
You might consider editing the audio. It's very quiet on some systems.
@collinsacheampong2673
@collinsacheampong2673 2 жыл бұрын
thanks very much bro...
@pedritomanuelroque
@pedritomanuelroque 4 жыл бұрын
How can I convert that script into .exe so I can install it in another PC and others can use it??
@elenagjevukaj1214
@elenagjevukaj1214 6 жыл бұрын
Excellent work! Thank you :)
@kennethpiguez449
@kennethpiguez449 3 жыл бұрын
🙏
@mr.bowtie2309
@mr.bowtie2309 3 жыл бұрын
.get doesn’t work, How can I fix it?
@GaneshPatil-vtox
@GaneshPatil-vtox 6 жыл бұрын
Thanks brother
@HIDlarissaTERRY
@HIDlarissaTERRY 4 жыл бұрын
interesting, thank you so much....love the clear talking ;)
@ryanbarrera2595
@ryanbarrera2595 5 жыл бұрын
This is great...Thank you for sharing your knowledge..
@abisarwan20
@abisarwan20 2 жыл бұрын
thank you so much 😊
@sourabh359
@sourabh359 3 жыл бұрын
Very useful and user friendly!! 😁😊
@albertodearte
@albertodearte 4 жыл бұрын
Thanks! I was looking for something like this for a long time... It would be nice if your can transform this example in a chatbot with some intelligence to it. There are many things to do
@funnyanimalworld7579
@funnyanimalworld7579 4 жыл бұрын
After this video you know tkinter.try making list of 30 questions and asign each question 5 radio buttons then print answers into a file if you cand do this kind of gui then yes you learned tkinter in 20min
Understanding the tkinter window and how to use widgets
19:10
Tkinter Course - Create Graphic User Interfaces in Python Tutorial
5:37:31
freeCodeCamp.org
Рет қаралды 3,3 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 1,9 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 4,8 МЛН
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 75 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 133 МЛН
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
Python GUI Development With PySimpleGUI
15:15
Real Python
Рет қаралды 1 МЛН
Tkinter Beginner Course - Python GUI Development
38:59
NeuralNine
Рет қаралды 557 М.
Learn to Program 20 : TkInter Tutorial
25:40
Derek Banas
Рет қаралды 143 М.
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 89 М.
Top 18 Most Useful Python Modules
10:50
Tech With Tim
Рет қаралды 933 М.
GUI with Python's Tkinter, by Robert Jomar Malate
40:50
CS50
Рет қаралды 234 М.
How to Program a GUI Application (with Python Tkinter)!
1:05:14
Keith Galli
Рет қаралды 946 М.
The grid layout method in tkinter
22:44
Atlas
Рет қаралды 34 М.
Making modern GUIs with Python and ElectronJS
22:33
Sourav Johar
Рет қаралды 661 М.
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 1,9 МЛН