Тёмный

Create a GUI app with Tkinter - Step by Step Tutorial 

Python Simplified
Подписаться 241 тыс.
Просмотров 615 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 903   
@58slewins31
@58slewins31 3 года назад
Finally someone who actually explains what the commands are doing as they write the code. Thanks.
@PythonSimplified
@PythonSimplified 3 года назад
Thank you 58 slewins, I had a feeling people will find it handy! 😃
@rudyNok
@rudyNok 3 года назад
@@PythonSimplified In 8:58 you said that when using tk.Label the first parameter is always root, but minutes before you used tk.Label for logo image WITHOUT it. Explain.
@Science_WithSimon
@Science_WithSimon 2 года назад
@@PythonSimplified Seriously! So many others simply use code and don't explain why. It makes it sooooooo much easier to follow along when things are "clicking" as you go along. Everything was wonderfully explained. Thank you, thank you, thank you.
@son_of_hiskingdom5092
@son_of_hiskingdom5092 2 года назад
@@PythonSimplified yes nicely done. I’m currently learning between C++ and Python and Python seems a lot easier especially as you explained. Not many do this, unless I’m not aware. How do I make my own malware and virus scanner and along with protective firewall against hackers?
@juancasilla684
@juancasilla684 2 года назад
not really: 7:34 "and even though it looks like we're just paraphrasing the code from above, you cannot skip this line of code, it is absolutely necessary", the mistery
@wolfganggosejacob779
@wolfganggosejacob779 2 года назад
FYI - CD means "change directory" ... "Current directory" sounds similar and also fits with the letters, but is not the origin of the name of this command.
@user-sb5vt8iy5q
@user-sb5vt8iy5q 2 года назад
pwd stands for print working directory, and cd stands for change directory, as defined by unix 50+ years ago
@glock21guy
@glock21guy 3 года назад
You've got a knack for this. You bring enough personality to learning to keep it interesting, without distracting from the learning. Good job.
@albertodiaz3852
@albertodiaz3852 3 года назад
her cuteness helps a lot
@__3093
@__3093 3 года назад
@@albertodiaz3852 simp :)
@tentaklaus9382
@tentaklaus9382 3 года назад
*obese bearded heavy breathing commences*
@Atreyuwu
@Atreyuwu 2 года назад
@@albertodiaz3852 A year in - you certainly weren't wrong. Triple-threat programming instructor. :)
@apricotmadness4850
@apricotmadness4850 Месяц назад
Stop it. You’re only saying that because she’s pretty.
@bruuhgh7005
@bruuhgh7005 3 года назад
Ma’am that’s exactly what i’ve been looking for By accident i saw u on Facebook I’m lucky ❤️
@PythonSimplified
@PythonSimplified 3 года назад
Awesome, thank you! 😀 I'm glad you found it helpful!
@antoniofuller2331
@antoniofuller2331 3 года назад
True words. . .
@kuzmanovic2D
@kuzmanovic2D 3 года назад
**tips fedora**
@aazizskills
@aazizskills 3 года назад
By searching "Desktop GUI App with python" , I found your tutorial. Nice work. Carry on with python stuff..
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much Abdul, I'm glad you liked it! 😊
@anthony_issa
@anthony_issa 3 года назад
Excellent video, clear and simple. That’s all I was looking for, thank you !
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much Anthony, I'm glad you liked it! 😃
@gb469x
@gb469x 3 года назад
This is something I’ve been looking for a long time. Simple project wise tutorials. You are fantastic and thank you soo much for the video series. 💪🏽💪🏽💪🏽❤️❤️❤️
@PythonSimplified
@PythonSimplified 3 года назад
Wow, thank you so much Dreamers United! 😁😁 I'm really glad you like my projects! The next one in line is a GUI application again, built with PyQt5 and Pytorch (yup, we'll integrate an actual Neural Network inside our app 😉) So stay tuned!
@eddw123
@eddw123 2 года назад
Your tutorial is excellent but the script code looks blurry, can you increase font size in your future tutorials? Thanks 🤓
@PythonSimplified
@PythonSimplified 2 года назад
Thank you so much! 😃 I have dozens of newer tutorials on the channel featuring even cooler GUI libraries than Tkinter!! (and all of them feature much larger fonts of course! hahahaha) If you like this one - I recommend to have a peek 😉
@programador-visual
@programador-visual 3 года назад
I'm a no coder, but I find your tutorial soothing lol
@programador-visual
@programador-visual 3 года назад
@@robbyz512 well, Im gay so... its ok
@web_exit
@web_exit Год назад
Hello, Thanks for your hardwork, but please when record, please zoom the screen for visibility 🙏
@fayxx8701
@fayxx8701 3 года назад
Nice video :D But ins't "cd" short for "change directory"? xD "pwd" lists the "current directory"
@Flackon
@Flackon 3 года назад
You’re right cd = change directory pwd = print working (current) directory
@tamawashere6855
@tamawashere6855 3 года назад
So many unnecessary steps just to create a gui with python. Why can't python just have built in forms and modern windows like visual studio :/
@Murrengan
@Murrengan 3 года назад
So much work and so low views. i also have programming channel and i understand you're pain. Да пребудет с тобой сила
@PythonSimplified
@PythonSimplified 3 года назад
hahaha Spasibo Murrengan, vse budit horosho! ja naaborot v vostorge ot kali4estvo views - u menja prosto ne kogda stolko mnogo nebilo za 7 4esov! hahahahaha XDDDD
@Murrengan
@Murrengan 3 года назад
@@PythonSimplified 😂
@jmyonan
@jmyonan 3 года назад
For future reference, CD stands for Change Directory, not Current Directory. Other than that, I love your videos.
@__3093
@__3093 3 года назад
simp
@gamingwithmaddy786
@gamingwithmaddy786 3 года назад
You’re simply great the way to teach is really awesome ❣️
@coolsav0074
@coolsav0074 3 года назад
Please don't add music in the background....it's way more annoying than the small font.
@richardikin
@richardikin 3 года назад
This is good timing! I've just started learning python because I've gotten a little bored with Java, c#, c++ etc.
@stevemclaughin6382
@stevemclaughin6382 Год назад
I had some issues with PfPDF2 being deprectiated, so I made the following changes: from PyPDF2 import PdfReader def open_file(): browse_text.set("loading...") file = askopenfile(parent=root, mode='rb', title="Choose a file", filetype=[("Pdf file", "*.pdf")]) if file: read_pdf = PdfReader(file) page = read_pdf.pages[0] page_content = page.extract_text() print(page_content) New to python, lucky to find your channel!
@nikluz3807
@nikluz3807 3 года назад
Thank you!, very straightforward. Exactly what I needed actually. I plan on using this ui implementation to manage massively moving or renaming files. Works like a charm!
@PythonSimplified
@PythonSimplified 3 года назад
That's awesome!! Glad I could help! 😃
@mectoystv
@mectoystv Год назад
Hi, good video. Is it necessary to include the lambda function in your example?
@hugoalmeida1291
@hugoalmeida1291 3 года назад
One of the highest quality tutorial I've ever seen. Amazing!
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much Hugo, glad you liked it! 😁
@shantanunimkar3792
@shantanunimkar3792 2 года назад
Please make more videos like this . Can you please tell that how to make more attractive gui in Tkinter
@raphaelfernandes100
@raphaelfernandes100 3 года назад
Amazing content. I loved it. Thank you so much!!!!
@PythonSimplified
@PythonSimplified 3 года назад
Thank you Raphael, I'm glad you liked it! :D
@shezikhan5934
@shezikhan5934 3 года назад
Nice video! Suppose that I have a school management website So can I build a tkinter app from where users can do many stuff and this saves to django database Simply the question is how to make a tkinter app which connects to dhamgo website with api.. or with any other technique
@MosnoAlMoseeki
@MosnoAlMoseeki 3 года назад
That was EXCELLENT. I actually just recently created a PDF text extractor, but it is just a terminal window that extracts the text and saves it to a text file, and I've been wanting to learn how to create a GUI for it, so your teachings here will help me make it even better. Thank you so much, and keep up the amazing work!
@jiviteshkhatri9507
@jiviteshkhatri9507 3 года назад
Hello I am Jivitesh. From India. ... Do you like indian boys...
@mattmovesmountains1443
@mattmovesmountains1443 3 года назад
Appreciate the tutorial! Working through this right now; if any mac users have trouble getting the background color of their button to change, you can use highlightbackground= instead of bg=.
@Music_PsyQuake
@Music_PsyQuake 3 года назад
No wonder why they say canadians are nice
@flsantanna
@flsantanna 3 года назад
You were born to teach, thank you very much for the tutorial!
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much for the lovely feedback Frederico! 😀
@arkie87
@arkie87 3 года назад
@@PythonSimplified It's true. Most youtubers dont explain, they just type and type and type and type. You explain while you type, and you explain very well. Keep it up! I'll be coming to you in the future if I need/want to learn something :-)
@maksimtsikhanovich279
@maksimtsikhanovich279 3 года назад
Маша, классное видео. Ты можешь запилить видос с panda i csv библиотеками? Можем что-то совместное с Python-Django - MySQL Workbench придумать.
@PythonSimplified
@PythonSimplified 3 года назад
Приветик n n! 😁 Про Pandas и CSV точно будит tutorial в ближням времини! А вообще я почти везде пользуюсь Пандас, например в етом видео (если срочно нужин пример с CSV): ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VDg8fCW8LdM.html а про Django я не много знаиу, но порекомендую проверить канал Murrengan, у него много видосаф пто Django по русски: ru-vid.com/show-UC8D-Zw9iR6pRyGOXHVqzlQw с наступающим! 🎄🎄🎄
@maksimtsikhanovich279
@maksimtsikhanovich279 3 года назад
@@PythonSimplified Спасибо большое! Я тебя законектил в linkedin Maksim Tsikhanovich.
@sebastianzeidler4108
@sebastianzeidler4108 3 года назад
Wow, you are an awesome lecturer. You gave me, as an newbee, an excellent insight how different things work together and what basic principles are in the backgroud. *well done*
@Katuvan
@Katuvan 3 года назад
FYI, cd stands for change directory, not current directory.
@paulfranklin7671
@paulfranklin7671 3 года назад
Great tutorial - even a novice like me managed to get most of it to work. Couldn't get the font to change or text to appear in the final window but will re-check my code to see if I've missed anything. Well done Mariya, well done, give yourself a pat on the shoulder. Going to give the beautiful and mechanical soup tutorials a go next
@PythonSimplified
@PythonSimplified 3 года назад
Yeeyyy!! Thank you so much Paul, I'm glad you liked it! 😃😃😃 I am also super happy to see my "simplified" concept works! You're feedback is exactly what I was hoping to hear when filming these tutorials, so thank you so much for that! Let me know if you resolved the issues in your code, if not I might be able to help! Anyways, Merry Christmas and have fun with the web scraping stuff, it's a really handy technique to learn! 😉
@FredM1999
@FredM1999 2 года назад
Great vid! from my computer, it works more with this PDF parameter: filetypes=[("PDF Files", "*.pdf")]
@PythonSimplified
@PythonSimplified 2 года назад
You are absolutely correct Frédéric! 😀 "filetypes" instead of "filetype" is the way to go! I've a updated it in the Github repository a while back, "filetype" was failing across different OS 😉
@BeAPythonDev
@BeAPythonDev 3 года назад
Nice vid Maria! Well communicated and entertaining. Also appreciate the great use of timestamps! Would be great if along side the starter files there was a final project file for people that can learn code at a faster pace.
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much! I actually did include a finishedProject folder on Github :D: github.com/MariyaSha/PDFextract_text/tree/main/finishedProject Sorry, I just didn't specify the link in the description to avoid spoilers XD If you navigate one folder out of the starterFiles, you will see both of these folders alongside each other :) Thanks again!
@BeAPythonDev
@BeAPythonDev 3 года назад
@@PythonSimplified great, I'll definitely check that out this weekend. I've been meaning to learn basic gui skills
@SnelleJaapie
@SnelleJaapie 3 года назад
I have tried numerous things, installs and reinstalls, But i can't get PyPDF2 to import. I have literally no idea what it could be and hope someone could help me out with this. Also PIL is being a Btch aswell...
@PythonSimplified
@PythonSimplified 3 года назад
Hi goodskater3, did you recently upgrade to Python 3.9? I've heard there are still some issues with integrating some of the modules there. Also, how did you install your Python?
@scale1982
@scale1982 3 года назад
Thank you so much for this great piece of knowledge!!
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much for your amazing feedback Basel! :D
@doukaramohamed7595
@doukaramohamed7595 2 года назад
Thank you so much i spend 7 hours watching bold man trying to explain how to create a button i spend 15min here Already Building an app so thanks
@PythonSimplified
@PythonSimplified 2 года назад
hahahahaha I think I know which tutorial you're talking about! 🤣🤣🤣 Every time I see a tutorial that's over an hour - I know it's too much information! 7 hours requires so much patience, I probably can memorize the entire documentation of Tkinter faster than that! hahahahaha 😂 Anyways, I'm super happy you stumbled upon my video and you were able to build your own app as a result! 😊 I covered plenty of other GUI libraries like Kivy and PyQt5 if you're interested, you might like them more than Tkinter: Kivy tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-YDp73WjNISc.html PyQt5 trivia app tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9iZLDnW_vwU.html Best of luck with your project! and thank you for the lovely comment! 😁
@block1207
@block1207 3 года назад
Hi, first of all great video. So, I know that it is an prejudice, that girls don't know anything about computers... but well in my class the girls not even know how restart a pc. So I think that it is great that there are more female programmers out there ! Great Job :)
@PythonSimplified
@PythonSimplified 3 года назад
Thank you! ❤ There are many female programmers out there but for some reason, we are considered to be a rare sight (like a majestic unicorn) 🤣 Not many are teaching on RU-vid though, but I assure you, our numbers are growing by the day ;) Maybe give the girls in your class some time, they'll realize how good of a proffession it is eventually
@carlos_casio
@carlos_casio 3 года назад
Thank you for the amazing video!! As I'm developing tools for automation and data analysis with Python, it would be great if you could do a tutorial on how to convert these apps to an executable file so anyone can launch it without actually having Python. Keep it up you're awesome!
@PythonSimplified
@PythonSimplified 3 года назад
Thank you Carlos! 😀 Sounds good! I'll film a quick executable conversion video soon, thank you for suggesting! 😁
@minamilad7485
@minamilad7485 3 года назад
ياريتني كنت بكلم إنجليزي كويس🤦‍♂️♥️ Good job my friend 👍🤩
@ibgm9317
@ibgm9317 3 года назад
I am really speechless . You have a special gift related to making people understand. I am from Middle East but I don’t kill people haha. Thank you so much.
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much Ib, I'm really glad you like my tutorials! 😃 I grew up in the Middle East so I know that the reality is very different from how the mainstream news outlets present it 😉 And I also don't kill people hahaha 🤣
@gavrielsembiring6048
@gavrielsembiring6048 3 года назад
Actually you could simply from Tkinter import * or from Tkinter import (any object like Tk, Canvas, Label, ttk) so, your code from root = tk.Tk()< will be > root = Tk() you do not have to make a canvas to resize your tkinter window, you simply just root.geometry('height*width')
@PythonSimplified
@PythonSimplified 3 года назад
Hi Gavriel! Thank you for your feedback! 😃 The * tip is amazing!! I've used it in the following Dear PyGui video, and I should have definitely used it here too (I guess too late now 😅 but, yes, I absolutely agree with you there!) Are you sure that the root.geometry() tip can be combined with .grid() though? did you try it inside your code? Please let me know! I'll try it on my end once I'm done with replying on comments, but I vaguely remember there were some issues with it... :)
@gavrielsembiring6048
@gavrielsembiring6048 3 года назад
@@PythonSimplified yup, you can combine it with grid() of course, but in some cases, the tkinter window would shrink it's size depend on the element (if you just put 1 button, it will shrink into that button size), so you have to use from Tkinter import Tk root = Tk() root.propagate(False) ---> prevent the window shrink or, if you use pack, grid, place root = Tk() root.pack_propagate(False) root = Tk() root.grid_propagate(False) root = Tk() root.place_propagate(False) i think it would do better, so you do not have to type "tk." for every single time just to create an object in python, especially if you work with multiple window that requires many object. You could use any of it, it's the same, but i usually use the first example rather the second example P.s: Steins Gate is good, you should watch it ;)
@PythonSimplified
@PythonSimplified 3 года назад
That's awesome! thank you so much@@gavrielsembiring6048😁 I've tried root.geometry() with grid() and it worked like a charm! I can't get rid of the canvases though, because I want to split the program into partitions with different background colours... I just find it convenient. I will include your recommendations in the follow up Tkinter video (and I've already adjusted the code on my end so no more tk. instances 😉) and Steins Gate you say? I'll check it out when I have a chance! 😃 Happy New Year!
@salarghaffarian4914
@salarghaffarian4914 3 года назад
Thanks for this valuable tutorial. Also Waiting for the image editor as well! Awesome!
@PythonSimplified
@PythonSimplified 3 года назад
You are welcome Salar! 😄 While you wait for the tutorial, if you are interested in image extraction - there's a really nice thread on Stack Overflow that helped me build that extension. I highly recommend checking out Sylvains' comment (it looks a bit intimidating 😵, but it was the best solution for me) : stackoverflow.com/questions/2693820/extract-images-from-pdf-without-resampling-in-python
@danbrown6698
@danbrown6698 2 года назад
I've never watch a coding vedio so relaxed like this before. thanks!
@kapitankidlattv9613
@kapitankidlattv9613 3 года назад
Thanks for a wonderful tuts - BTW dear, cd is Change Directory :)
@MrPragmaticLee
@MrPragmaticLee 3 года назад
Has anyone else noticed that .geometry() does not take into consideration the Task Bar being at the top of the screen? The effect is that if you set a window to show at 0,0 it will be behind the taskbar with no access to the Title bar including the minimize, maximize, X buttons. I've found this true on both Windows & Linux.
@michel_silva
@michel_silva 3 года назад
Adoro sua forma de apresentar, parabéns.
@prabjot4603
@prabjot4603 3 года назад
Can i use this application as my minor project for college because its urgent and i need a project to show to my teacher.
@PythonSimplified
@PythonSimplified 3 года назад
Hi Prabjot! 😃 You can use everything you see on my channel and on my Github if it helps you with school or with understanding Python! I'm doing this so that lovely people such as you would have free sources of information and simple instruction to achieve complex results. I highly recommend to adjust my projects though, as my Github has many followers now and your teachers might find my code if they do a bit of searching. You can change some of the widgets, maybe use a different design/colours or even change your GUI library to PyQt5 instead of Tkinter (check out my PyQt5 Trivia Game tutorial, if you need a good reference: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9iZLDnW_vwU.html) That way you can tell your teacher you got some help, but you created your own project as a result! 😉 It's always best to avoid a copy-paste situation, but if you don't mind - I also don't mind 😊
@rbk00006
@rbk00006 3 года назад
Hey you're back...it's me your favourite subscriber Rishabh kumar bringing you the Halloween wishes. Love this video...you should also make a video on kiwi framework.
@PythonSimplified
@PythonSimplified 3 года назад
Thank you Rishabh! :D I wish you a very happy and spooky Halloween with lots of tasty treats!! I will definitely look into Kivy, I've heard a lot of good things about it! it's time to give it a try especially now when you're recommending ;)
@kerrykreiter445
@kerrykreiter445 Год назад
Hi Mariya! Just started watching your videos and I am learning so much! Thank you! One question, is there an equivalent tool like nodemon but for Python development? Thanks again for your amazing videos, you are a top-level content creator and instructor!!
@AbhishekIngalesaipem
@AbhishekIngalesaipem 3 года назад
Increase font size. Most of the background is empty and font too small to read
@PythonSimplified
@PythonSimplified 3 года назад
Hi Abhishek, thank you for your feedback! I've increased the font size on my computer since this video, you can checkout my newer tutorials, the font there is huge!😉 Sorry, it was my first time filming with Atom and I didn't account for how small the font would come out
@thelostman3112
@thelostman3112 3 года назад
Hi. I want to create GUI for Android but I don't want to use Kivy. Is there any other way I can create GUI for Android? Is it possible with PyQt5?
@PythonSimplified
@PythonSimplified 3 года назад
Absolutely! You'll need to use an additional tool called PyQtDeploy which supports mobile platforms such as Android and iOS: pypi.org/project/pyqtdeploy/ Please note that you might need to purchase a special license to use PyQt5 commercially, so please look it up on your end 😉 If you need a nice project learn the basics of PyQt5 - please checkout my trivia game tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9iZLDnW_vwU.html part 2 (connecting Open Trivia Database): ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-r2ZN0mTDnPc.html Good luck and have fun building your Android app! 😀
@thelostman3112
@thelostman3112 3 года назад
@@PythonSimplified Thanks alot😊😁
@paulklimenko8419
@paulklimenko8419 2 года назад
can we do android app with this Tkinter?
@mrandroidarena9470
@mrandroidarena9470 3 года назад
Nice video,I would love for you to zoom in on the text cause it's really small, can't see it clearly
@andersonnagata3390
@andersonnagata3390 3 года назад
Awesome... good job It would be nice to see kivy tutorial. No good tutorial available on youtube
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much Anderson! I will definitely look into Kivy and try to come up with a fun tutorial! :D
@jatingera924
@jatingera924 3 года назад
well said, and it looks much better to work on it instead of Tkinter
@PythonSimplified
@PythonSimplified 3 года назад
I've tried Kivy last night and it does seem quite nice, I just don't know if I'm a big fan of creating .kv files for each widget 🤔 Will definitley go over this module in the future, but I can't say I like it better than Tkinter or Dear PyGui 🙂
@jatingera924
@jatingera924 3 года назад
@@PythonSimplified but, tkinter widgets do not change their size or could say they did not resize on their own. But yeah, canvas and entry widget are good and much easier to handle. will definitely see your future tutorials. Good Luck 👍
@luricci8471
@luricci8471 2 года назад
thx for this fine lesson! Would you say tkinter is suitable for a office business projekt with database connection? and doesnt it hopefully look as from grandfather designed?
@PythonSimplified
@PythonSimplified 2 года назад
hahahaha that's the problem with Tkinter - it's popular but it looks very old school! 😅 There are much more modern looking libraries like PyQT5, Kivy or KivyMD! 😁 In my opinion the most stylish of them all is KivyMD as it has some really nice themes, you can checkout my tutorial on it here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ah3JeHAfM0M.html Another benefit of Kivy and KivyMD is that you can convert the desktop application into a mobile application without changing anything in the code 😊 All these libraries can be combined with databases, so it's only a matter of personal preference! If you need a desktop program that can be easily converted into an .exe file, I recommend checking out my PyQT5 trivia game tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9iZLDnW_vwU.html Which then can be converted into .exe with the help of auto-py-to-exe: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Y0HN9tdLuJo.html Best of luck with your project and I hope it helps! 😀
@luricci8471
@luricci8471 2 года назад
@@PythonSimplified Dear Mariya i am so happy to have received this pro answer and this helps me a lot because it is not so easy to find a good path through so many programming languages and toolkits.. I send hereby my best regards to these wonderfull forests near Vancouver and Pacific. (many years ago i was exited by making a trip to Canada, Vancouver, Victoria a.s.on, still dreaming of)
@jesuisravi
@jesuisravi 2 года назад
friend, there is only one thing about this video that I don't like: You have not magnified the screen where the code is being typed. This makes it almost impossible to follow what you are doing. I am always grateful to the makers of coding videos who make their work easy to read.
@PythonSimplified
@PythonSimplified 2 года назад
Hi jesuisravi! 😊 This one is a very old video of mine (It's actually exactly 1 years old today 🥳🥳🥳) , back then I was just learning how to use screen capture and how to edit videos so it doesn't really reflect the current quality of my videos. I have many many other GUI tutorials, with even cooler libraries than Tkinter and with much larger font sizes. I highly recommend checking out my Kivy tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-YDp73WjNISc.html Or even the Part 2 of my Tkinter tutorial where the font is huge (this one extracts images as well, not just text): ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-y8PR4lTAh5E.html
@jesuisravi
@jesuisravi 2 года назад
@@PythonSimplified Yes, those are much better.
@axyshaysi
@axyshaysi 3 года назад
Hey a quick question: i want to add a tensorflow model that i made on teachable machine to this simple desktop gui. Can you show tutorial please? I cant figure it out :(
@PythonSimplified
@PythonSimplified 3 года назад
I'm not a big fan of Tensorflow... a Pytorch kind of girl! 😀 But wherever you want to use an AI model in your apps, you need to make sure you're properly saving it to a checkpoint (.pth file) and prop[erly loading this checkpoint for prediction. It is usually a HUGE file, by the way... I have a Pytorch tutorial, where you can find the code for saving/loading the checkpoint at the very end: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-GTyTG3XzPq8.html And if you want to see how it integrates as part of a PyQt5 app, checkout my "What The Flower" repository on Github: github.com/MariyaSha/FlowerImageClassifier_GUI Hope it helps! good luck! 😀
@axyshaysi
@axyshaysi 3 года назад
@@PythonSimplified Omg you are the kindest and nicest person ever 😍 thank you so much for being so helpful😊
@anburenganathan8369
@anburenganathan8369 3 года назад
Hello mam Thanks for the video... one kind suggestion. could you please zoom in little bit.. we can't able to see the code clearly.
@PythonSimplified
@PythonSimplified 3 года назад
Absolutely! I've enlarged the font on my computer since this video, it's much larger in my newer tutorials and it's HUGE in the one I'll release tomorrow (part 2 of this project, to be more specific 😉) You'll be able to read it from space!!! 😁
@anburenganathan8369
@anburenganathan8369 3 года назад
@@PythonSimplified Thanks
@doodo7381
@doodo7381 5 месяцев назад
The best GUI tutorial I ever seen on youtube. Really thank you 👍👍👍👍👍👍👍
@MikeKranidis
@MikeKranidis 3 года назад
cd != current directory cd = change directory
@ChrishnaBombay-c8x
@ChrishnaBombay-c8x 10 дней назад
Your tutorials are amazing . How far you have been learning python ? When did you start python coding ?
@Meghana779zg
@Meghana779zg 3 года назад
Hi ...big follower!
@PythonSimplified
@PythonSimplified 3 года назад
Hi Ravi, nice to see you here! :)
@shubhambadhan7821
@shubhambadhan7821 3 года назад
my file text is not showing on the app or even in terminal please help me, mam.
@PythonSimplified
@PythonSimplified 3 года назад
If you don't get any errors, double check your code and see if you didn't miss anything (this is the code for the finished app): github.com/MariyaSha/PDFextract_text/blob/main/finishedProject/app.py If you get an error - let me know what it is and we can go from there :)
@vegaswould
@vegaswould 2 года назад
I'm more of a fan of visual studio code. Is there any specific reason you use Atom over other available coding software?
@PythonSimplified
@PythonSimplified 2 года назад
I'm using all kind of IDEs and code editors including: Atom, Jupyter Notebook, Wayscript, Sublime, etc... not sure why it matters 🤪 Visual Studio is actually my least favourite so I only use it for C++ and only if I absolutley have no choice... 😅 too many buttons in very inconvenient locations, too much hustle with setup and I really see no benefit over other IDEs. It's just my humble opinion though... In the end of the day - it's all up to you and your personal preferences! 😊
@PythonSimplified
@PythonSimplified 2 года назад
Oh sorry, just noticed you meant VS code! (apparently I've read the Visual Studio part only hahahaha). VS Code is really nice!! It's Visual Studio that I can't stand (their desktop version) 😉
@ClarityCoders
@ClarityCoders 3 года назад
Nice video! Keep up the good work.
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much Jakey!!! :D
@ImranKhan-ft7ns
@ImranKhan-ft7ns 2 года назад
Explaining what each line of code does, is what makes you different from others. I just got my hands on python and want to build projects, this video really helps ❤️, thanks..
@AlexanderNejadeh
@AlexanderNejadeh 3 года назад
Thank you for making an informative video about Python and Tkinter. I am taking a Python class for the first time and HATE ugly output! I always try and generate attractive output in all my programming projects because the appearance is just as important as the output.
@PythonSimplified
@PythonSimplified 3 года назад
That's right Alex!! nobody's gonna pay for an ugly software!! 🤣🤣🤣 Actually, maybe check out the PyQt5 library if you'd like to have more control over the design of your GUI, it allows you to use CSS to style your widgets so you can even account for :hover events and animations very easily 🤓
@TheOlddog1957
@TheOlddog1957 3 года назад
Congratulations! You are clear in the explanation and very nice. Thank you and so many beautiful things for your future. Marco from Italy
@ProfePlaysMinecraft
@ProfePlaysMinecraft 2 года назад
Exactly what I was looking for. Thanks!!
@MakPich-lf6wd
@MakPich-lf6wd 7 месяцев назад
love your work simple easy to understanding
@PythonSimplified
@PythonSimplified 7 месяцев назад
Thank you so much! Super happy to help! 😃
@cernunox
@cernunox 3 года назад
This was very interesting to watch! Good explanation and video!
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much Emilio! 😃
@patc9813
@patc9813 3 года назад
Fantastic video - taught me a whole bunch about Tkinter in a very short time!
@nicadi2005
@nicadi2005 3 года назад
@Pat C "Fantastic video - taught me a whole bunch about Tkinter in a very short time!" - Oh, did it now(?) OK, so why do you need both these lines of code then: logo_label = tk.Label(image=logo) logo_label.image = logo ?
@gurpwindoo1928
@gurpwindoo1928 3 года назад
cd = chdir = "Change Directory"
@extremepsyche3135
@extremepsyche3135 3 года назад
It would be better if you could zoom in more on the code so it's easier to see - my 2 cents
@PythonSimplified
@PythonSimplified 3 года назад
Absolutely! I've already adjusted my computer settings to a much bigger font, the next videos would be a 100 times easier to read ;) Sorry, I'm usually using different interfaces with bigger fonts, this was the first time I've used Atom in a video and didn't notice how problematic the settings were...
@MACEO475
@MACEO475 3 года назад
Hi, is the Pillow module necessary ? I saw that images could be added without this module, what does it change ? I had a hard time trying to install it
@PythonSimplified
@PythonSimplified 3 года назад
Hi gebe, you can install it with either: pip install pillow or if you're using Anaconda, with: conda install -c anaconda pillow If none of these works on your end, you must be using Python 3.9 or a version that might not support Pillow yet. I'm using it with Python 3.8 and it works like a charm 😉 PIL's ImageTk is very handy here! but you can alternatively try displaying images with Open CV (as known as cv2) import cv2 image = cv2.imread('my_image.png') logo_label = tk.Label(image=image) Give it a try, it might work if Pillow fails! I haven't tried it on my end yet, but I believe it should do the trick 😀 Good luck, and let me know if it worked!
@MACEO475
@MACEO475 3 года назад
@@PythonSimplified I finally managed to install it, the problem was just that python and pip were not in the path list Thanks !
@MiguelFernandez-kk2li
@MiguelFernandez-kk2li 6 месяцев назад
Great. Nobody can explain it better than Mariya does. Thank you.
@mult1vac
@mult1vac 3 года назад
cd is change directory not current directory, apart from that nice tutorial *thumbs up*
@georgehammond867
@georgehammond867 3 года назад
well pointed out!
@kumkumslab5811
@kumkumslab5811 3 года назад
Thank you so much for your this video..... I'm arif from indian mam please can you help me on my python project...
@jorigeujwal2684
@jorigeujwal2684 3 года назад
Mam To design GUI for python code which is better pyqt5 or TKinter
@PythonSimplified
@PythonSimplified 3 года назад
PyQt5 without any doubts! 😀 Tkinter simply doesn't have the styling abilities that PyQt5 has (not even close!) and I find it to be a bit more complicated in terms of hiding elements and re-appearing them. The biggest benefit of PyQt5 however, is that you can add a .setStyleSheet() method on each widget and use CSS code inside. That way to can also tackle :hover events and even create animations! Check out my Flower Image Classifier project on Github, where I've used PyQt5 for the interface (specifically in "app.py"): github.com/MariyaSha/FlowerImageClassifier_GUI This would give you a nice example of what can be done with PyQt5. (By the way, if you're downloading the entire project, don't forget to get checkoint1.pth. The link is in the READ_ME file, it directs you to download it from my Google Drive as this file is too big for Github)
@jorigeujwal2684
@jorigeujwal2684 3 года назад
@@PythonSimplified thanks mam could you please do tutorial videos on pyqt5
@1rajuindia
@1rajuindia Год назад
Hi, thank you very much for your explanation. I tried in my Linux Ubuntu 22.04. It is expecting some modules are missing. I tried several way to rectify it but not possible. My error is "ImportError: cannot import name 'ImageTK' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)". Kindly help me out. Thanks and regards, Raju from India.
@domainname683
@domainname683 Год назад
Mariya im your subscribers ....... Im following you from two years ago..... In this two years mariya you know what im falling love with.....you . Please mariya reply my comment
@codeKeshav
@codeKeshav 3 года назад
# Try this try: import PyPDF3 except: from os import system system('pip install PyPDF3') #Importing needed library from tkinter import Tk, Button, Menu, Listbox, Label, Frame, messagebox, filedialog, END from PyPDF3 import PdfFileWriter, PdfFileReader from os import listdir, path from random import choice pfw=PdfFileWriter() preference=[] for d in range(97,97+26): preference.append(chr(d)) for d in range(65,65+26): preference.append(chr(d)) preference.extend(['1','2','3','4','5','6','7','8','9','10']) name=choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference) root=Tk() root.title('Merge PDF') root.resizable(height=False, width=False) f1=Frame(root) f1.pack() f2=Frame(root) NoDirLabel=Label(f2,text='*No Directory Choosen.',font='times 25 bold') NoDirLabel.grid(row=0,column=0) f2.pack() f3=Frame(root) f3.pack() f4=Frame(root) f4.pack() List_1=[] # Name of PDF Files List_2=[] # Name + Location of PDF Files List_3=[] # Stream of Selected Files Position={} # Tracks the position of FILES selected_or_not=0 #Defination Starts def getintodir(): global dir_location dir_location=filedialog.askdirectory() if dir_location!='' or path.exists(dir_location): getpdffiles() else: pass def getpdffiles(): global List_1 global List_2 for i in listdir(dir_location): if i.endswith('.pdf'): List_1.append(i) List_2.append(dir_location+'/'+i) CreateListBox() Title_label=Label(f1,text='Merge PDF',font='times 20 bold',fg='red',borderwidth=0) Title_label.pack(pady=5) Browse_button=Button(f1,text='Browse Directory',font='times 15 bold',command=getintodir,borderwidth=5) Browse_button.pack() Exit_button=Button(f4,text='Exit!!',font='times 15 bold',command=root.destroy,borderwidth=5) Exit_button.pack(pady=5) def grab_them(event): global Position ListPDF.itemconfig(ListPDF.curselection(),bg='lightblue') Position[ListPDF.index(ListPDF.curselection())]=List_2[ListPDF.index(ListPDF.curselection())] ListPDF.selection_clear(0,END) global selected_or_not selected_or_not+=1 def leave_them(event): global Position if ListPDF.itemcget(ListPDF.index(ListPDF.curselection()),'bg')=='lightblue': Position.pop(ListPDF.index(ListPDF.curselection())) ListPDF.itemconfig(ListPDF.curselection(),bg='white') ListPDF.selection_clear(0,END) global selected_or_not selected_or_not-=1 else: grab_them(event) def CreateListBox(): if len(List_2)!=0: global ListPDF ListPDF=Listbox(f2,width=50,fg='black',font='times 15 bold',highlightthickness=0,borderwidth=0) for i in List_2: try: PdfFileReader(i) ListPDF.insert(END,List_1[List_2.index(i)]) except: List_1.remove(List_1[List_2.index(i)]) List_2.remove(i) ListPDF.grid(row=0,column=0) ListPDF.bind('',leave_them) else: NoDirLabel.config(text='*No Directory Choosen.') NoDirLabel.config(text='*No Directory Choosen.') def renewthem(): global ListPDF ListPDF.destroy() global List_3 global List_2 global List_1 List_1=[] List_2=[] List_3=[] global name name=choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference)+choice(preference) global selected_or_not selected_or_not=0 global Position Position={} def mergeandsave(): global Position global List_3 for i in Position: List_3.append(PdfFileReader(Position[i])) for file in List_3: for page in range(file.numPages): pageobj=file.getPage(page) pfw.addPage(pageobj) Mergedfile=open(saving_name,'wb') pfw.write(Mergedfile) Mergedfile.close() messagebox.showinfo('Merge Completed!','All desired file merged.') renewthem() def namethefile(): global saving_name if selected_or_not!=0: saving_name=filedialog.asksaveasfilename(initialdir=dir_location,title='Save Merged File',filetypes=[('PDF Files','*.pdf')]) if saving_name!='': mergeandsave() else: saving_name=dir_location+'/'+name mergeandsave() else: messagebox.showwarning('Alert!!','No PDF files choosen to be merged, click " BROWSE DIRECTORY " for merging file.') def helpuser(): messagebox.showinfo('Help Guide','Hi everyone, This is " KESHAV ABHISHEK " Presenting a PDF File Merging Bot, this will help you to merge multipe PDF files in just a flash and it\'s pretty to handle.. For example... If you have 3 PDF files named 1.pdf, 2.pdf, 3.pdf with pages 1,2,3,......,20 and 21,22,23,......,40 and 41,42,43,......60 respectively, then you will get PDF file as 1,2,3,.......20,21,22,23,......40,41,42,43,......60 Hope you enjoyed, if yes use this software.. Any query contact "crystaled2003@gmail.com" .') # Function Defination Ends # Defining the Merge Button Merge_button=Button(f3,text='Merge',font='times 15 bold',borderwidth=5,command=namethefile,fg='red') Merge_button.pack(pady=5) # Define Menu Bar my_menu=Menu(root) root.config(menu=my_menu) help_menu=Menu(my_menu,tearoff=0) my_menu.add_cascade(label='Option...',menu=help_menu) help_menu.add_command(label='Help & About',command=helpuser) root.mainloop()
@henrivanparijs6172
@henrivanparijs6172 Год назад
On running the app.py an error shows stating : PyPDF2.errors.DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead
@joerenee8413
@joerenee8413 3 года назад
I'm just beginning in Python, Django, and Tkinter, etc. I liked this video a lot but had one problem with the code. I finally copied your code from GitHub to check my typing and had the same error. After some research I found that in line 24 of your code when defining the "file =' variable I needed to change 'filetype' to 'filetypes', not sure if anyone else had this problem. Thanks for the hard work to make this video. Hope to see more.
@PythonSimplified
@PythonSimplified 3 года назад
Thank you so much for your feedback Joe!! I really appreciate you've tackled this error and shared your solution with everybody!!! 😃 This could help lots of other nice people, who are facing the exact same error! Thank you once again! 😁😁😁 May I quickly ask what version of Python are you using?
@joerenee8413
@joerenee8413 3 года назад
@@PythonSimplified Python 3.8.5 with PyCharm
@Runawaygeekchannel
@Runawaygeekchannel Год назад
For anyone playing along on a Mac (I have recently moved, and am always finding there is an extra thing to workaround just for Mac), you may need tkmacosx (pip install tkmacosx) then for button formatting to work right, you need all buttons to use this module. import tkmacosx from tkmacosx import Button as tkm My_btn= tkm.Button(root, textvariable=My_txt, font='helvetica', bg='#00A1AB', height=30, width=150) Hope that helps, it took me a while to find this out. :-)
@LesPiecesDuPuzzle
@LesPiecesDuPuzzle Год назад
Hi Mariya, First of all! Ochen Xharacho! Spasiba! Your teaching skills are awsome! I wish I would have a computer science teacher like you. But Like other fan of your job, I have deprecated methods/attributes error msg and, so far, I couldn't fix the problem. Help! Pretty Please...! I understand it an old video...
@syedsaquibahmad4948
@syedsaquibahmad4948 3 года назад
understood clearly, you are a very good instructor i have ever seen. Love from INDIA 🇮🇳❣❣
@sindyukov
@sindyukov Год назад
Нельзя верить программисту работающему в Windows))) You can't trust a programmer who works on Windows)))
@princeadvance6237
@princeadvance6237 Год назад
hello guys can anyone help...I have been trying to 'activate main' in my anaconda prompt to proceed but not successful with that
@PythonSimplified
@PythonSimplified Год назад
"main" only exists on my computer, you'll need to create your own working environment 😉 Checkout this Anaconda tutorial of mine: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MUZtVEDKXsk.html It will show you all the steps and why we need them 😃
@princeadvance6237
@princeadvance6237 Год назад
Awesome! I'll check that up
@princeadvance6237
@princeadvance6237 Год назад
Heyyy Mariyah thank you so much! I've checked it out and I'm on my way to creating my first GUI app🔥
@adnerremy2650
@adnerremy2650 2 года назад
Your video is very well explained. If I add a fews entries, then a value to each of them. How can I get each of the values and add them up? Here are the codes. Thanks from tkinter import * root=Tk() somme=0 def add_button(): global somme somme +=1 for i in range(somme): lab1=Label(root, text='lab1') lab1.grid(row=i, column=1) entry1=Entry(root) entry1.grid(row=i, column=2) bouton_add=Button(root, text='Create widget', command=add_button ) bouton_add.grid(row=5, column=0) root.mainloop()
@pointsnorthgisuav8661
@pointsnorthgisuav8661 3 года назад
It is good to see that Tkinter is still generating some interest :) I just built a Tkinter GUI to accompany what would otherwise be a python API for pdf editing with for a web application.
@kabilansundaram5411
@kabilansundaram5411 3 года назад
Couldn't see in mobile with the dark background and small font size.
@PythonSimplified
@PythonSimplified 3 года назад
Hi Kabilan! 😃 Check out the second part of this tutorial - the fonts are much bigger and I repeat some of the instructions from part 1 as well: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-y8PR4lTAh5E.html
@kabilansundaram5411
@kabilansundaram5411 3 года назад
Extremely surprised over the response. Thanks.
@andromydous
@andromydous 2 года назад
Anyone using PyCharm CE (flatpak) know how to solve the "module not found: tkinter"? Python is supposed to be easier, but I've never had a problem with Java (using Eclipse). *Edited: I couldn't find the answer. Instead I just downloaded the Linux file from Jetbrains, extracted the folder, went into pycharm(your edition here) folder and into bin, then I right clicked on pycharm.sh and chose to run it as program. Once I copied all my code lines from the project I was working on in the flatpak version to a new project, everything went smooth as butter. I still had to install some packages for PIL (actually Pillow) and PyPDF2, but didn't need to do anything for tkinter.
@elciomba
@elciomba 3 года назад
Hello from Rio de Janeiro. You are terrific! Awesome content. I really like your videos. Thanks so much for sharing your knowledge! Is it possible to explore OOP? Thanks
@umangkumar2915
@umangkumar2915 2 года назад
Beautiful Teachers like you..... damnnnn. I was just sitting looking right at you, and everything was so easy.
@msaiff322
@msaiff322 Год назад
Excellent, hopefully you will use ttk in your next project instead of tk, it has got a better style. Thanks, you are AWESOME! :)
@yikes4530
@yikes4530 Год назад
Woman moment ☕
@Chux48
@Chux48 3 года назад
good suff but I think you need to zoom in your video. we used what you say not what we saw. the video look like it was recorded from a 3 km distance
@PythonSimplified
@PythonSimplified 3 года назад
Thank you for your feedback Isheanesu! I've already enlarged the font size on my computer since this video, check out my newer tutorials when you have a chance 😊
@Chux48
@Chux48 3 года назад
@@PythonSimplified thanks
Далее
Create GUI App with Tkinter -  Part 2
47:42
Просмотров 84 тыс.
Airpod Through Glass Trick! 😱 #shorts
00:19
Просмотров 356 тыс.
DAXSHAT!!! Avaz Oxun sahnada yeg'lab yubordi
10:46
Просмотров 469 тыс.
I use Drag and Drop to build modern Python Apps
14:08
Using tkinter with classes
28:23
Просмотров 65 тыс.
Create GUI App with PyQt5 - PART 1
30:25
Просмотров 179 тыс.
25 VS Code Productivity Tips and Speed Hacks
11:35
Просмотров 2,3 млн
Airpod Through Glass Trick! 😱 #shorts
00:19
Просмотров 356 тыс.