You'll need to add a conditional statement checking if images exist on the page inside the extract_images() function - if they don't exist on the page maybe try to return a blank white image instead so it doesn't break the rest of the code... sorry, it was already a 47 minute video so I decided to keep the rest of the detail for another time 😅
@@PythonSimplified What do you apologize for, for this awesome video xd? Of course you can't do all the details at once, just wanted to ask.. I tried to add some else statements at the extract_images() function but it goes always out of the range (IndexError). The error is in the following line: "img = images[image_idx[-1]]". We are selecting the last image and if I open a pdf without any images, this error occurs. Somehow I understand the problem but I don't know how to fix it.
@@ihak070 that's exactly where the blank image kicks in! 😉 Try adding the following lines of code inside your else statement: img = Image.new("RGB", (100, 100), (255, 255, 255)) images.append(img) This should do the trick! 😀 Just make sure that you're referring to the else clause of: if '/XObject' in page['/Resources']: You can also turn this into a transparent image by adding an alpha value (opacity). I hope I'll have some time in the evening to revise the code and add this handler to PDF files with no images, I'll get to give it a try myself... good luck and let me know if it worked out! 😊
Six months ago I shelved a hobby project that required image extraction from PDFs as too complex (at that time). Tonight the problem looks like it’s resolved thanks to your expertise and generosity. Time to start thinking of the project again! Thank you!!!
Image extraction from PDFs is far from being an easy task - I struggled quite a bit with it myself 😅 The mystery was solved after reading this Stack Overflow thread (Sylvains answer): stackoverflow.com/questions/2693820/extract-images-from-pdf-without-resampling-in-python But then displaying them on the interface with Tkinter was another nightmare!!! hahaha 🤣 Anyhow, I hope you find here exactly what you were looking for to complete your project- good luck and let me know how it turned out! 😊
An amusing look back at user interface design in the 1980s. It reminds me of my old Macintosh 30+ years ago. Anyone who uses Tkinter must love that nostalgic look.
Great detailed tutorial 🔥 I can only imagine the amount of time that went into editing it. Had to do as detailed tutorial for work at one stage and I must have spent more time editing, than writing the code.
Thank you so much for appreciating the hard work Dev Sauce! 😁 I've filmed it on Monday and I finished editing only Saturday morning, this tutorial has tormented me like never before 🤣🤣🤣 Judging by all the lovely comments, it was worth it, but no more Tkinter for me sir!! 😄
@@PythonSimplified THANKS MARIYA! I also have to say you get FIVE GOLD STARS for your responsiveness to your “students”! :-) It’s readily apparent your commitment to your audience and your channel! MANY THANKS!
You are a truly wonderful and informative Pythonista. I’ve been coding Python for a while and have written many scripts detailing the logic of various apps. I’ve been trying to find time to learn a graphical interface library such as tkinter , Kivy or Qt to take these apps from their frameworks to an attractive user experience. I found your videos and I was putting my apps together in no time at all. Thank you, so very much. Please keep teaching. You’re brilliant and talented and I will be watching for more. Luv you♥️. 🤜🤛
Wow! I'm still blushing from your previous comment- and now this??? 😀 Thank you so much Josh, it's a great pleasure reading your messages! I'm really happy to see you're finding my tutorials useful 😁 Just wait until you see the PyQt5 project! I've started it 2 days ago and right now it's over 90% built - it's much much more efficient than Tkinter and I can't wait to share how easy it is to work with!! so stay tuned for next week! 😎
Que incrível... passei semanas pensando em uma forma de fazer algo parecido e estava bem perdido. Muito obrigado! Que aula maravilhosa. Abraços do Brasil.
Wow Mariya! So, I subscribed and I looked back at some of your other Python videos. And just... wow! I have been wanting to learn beautiful soup as I’m really interested in scraping data from the web and yeah after the gui lessons I’ll be binge watching your episodes on those topics next. Thanks, dear. I mean it.
Thank you so much for the amazing feedback Josh, I'm really glad you're enjoying my videos! 😁😁😁 Check out the Mechanical Soup tutorial before you dive into Beautiful Soup though, it's much more intuitive to use and I have a feeling you'll like it better 😉: ruclips.net/video/drDdb1MBBfI/видео.html
Thank you for your excellent tutorial @Python Simplified. I have a little problem👇👇👇 I get the error below when I try to upload the PDF file in the starting folder: File "C:\Users\Adada\PycharmProjects\Tkinter -- Project\functions.py", line 41, in extract_images data = xObject[obj].getData() AttributeError: 'EncodedStreamObject' object has no attribute 'getData'
First.. nice vids. Good job.. i did learn a few a things.. just wanted to show you one thing save_btn = Button(root, text="save image", font=("shanti", 10), height=1, width=15) ... ... save_btn.grid(row=3, column=2) can also be simplified to save_btn = Button(root, text="save image", font=("shanti", 10), height=1, width=15).grid(row=3, column=2) i guess its really left up to personal preference. I just choose to try to avoid having to type repetitive labels.
Hi, Great vlog, very useful! Looking forward to more videos ;o) BTW, instead of the image counter in save_all(images) function, you could use enumerate() in the for loop, eg "for count, i in enumerate(images):", then you wont need the counter lines.
@Python Simplified @Python Simplified Please which is the best to learn dear pygui or Tkinter. I want to delve into software programming/creating GUIs, I want to know the one you would advise me to start with
As smart as she is beautiful! That being said, I would love some more in depth explanations as to why we are typing some of the things we are typing. I didn't feel like I was learning much when being told to "type this", but not why to "type this". It could just be me though!
Thank you Nick! It's not just you - it's me not having patience for Tkinter 😜 and to be honest - 45 minute worth of video is already a bit too much 😅 Check out my other GUI tutorials, (Kivy and KivyMD in particular) they're much more detailed and well-explained and the other libraries are a thousand times better anyways! Tkinter looks a bit like it was created for Windows XP 🤣
@@PythonSimplified I will certainly check out your tuts on Kivy. I too felt like Tk was a bit Windows98'esque, but I assumed that I just hadn't developed the proper design skills yet to make it not look like that.
Is it possible to rotate entire words vertically in a textbox? I have managed to make the word descend letter by letter downwards. Is there a way around it in tkinter?
I told you it's a beast!!! 😉 I'm waiting for the last accessory to arrive and then I'll share the top secret specs of it! 😁😁😁 I'm blaming the long wait on Canada Post!
Have you thought about separating the logical parts like images or contents to own classes? You could use for example the Classes Images (that handles all the images), Image, Contents and Content. I think this could help to organize the code and shorten the function names. images.getCurrentImage.save() or images.saveAll() could be some calls then. images.saveAll() could iterate over self.images and call the save()-Method for each Image Instance in this list.
Thank you so much Shafqat! 😀 I'm a huge fan of open-source software! However, I'm using Adobe Suite for all my video + graphic stuff, so if I'm already paying for it - I might as well use it! 🤣
I've looked over this quite a few times, but I still get the same basic 4 errors: in extract_images data = xObject[obj].getData() in open_file images = extract_images(page) in browse_btn = Button(root, textvariable=browse_txt, command=lambda:open_file(), font=("Raleway", 12), bg="#20bebe", fg="white", height=1, width=15) in __call__ return self.func(*args) *Note that I typed the errors in reverse order.
@@adada4u I know I shouldn't let it, but this one project is really beating me down. In Eclipse (Java), I've never had to deal with import problems. I want to learn Python. However, this project is making me feel incompetent. Doesn't help that I can't seem to find the answer. I've even went the route of installing Anaconda.......which now I have a problem with the PyPDF2 import. *edited: I figured out the import, but still having the same 4 errors I listed.
@@andromydous Don't beat yourself down over this. Bugs are an integral part of every programmer's life. Programmer's arguably spend more time googling solutions to their bugs than on anything else. It's part of the learning curve. It doesn't make you bad at programming.
i have been searching on the internet but couldn't find it yet. it is how to just display the first page of a PDF file in a tkinter frame or label ? i assume it should be very simple, right ?
Maam I have two question. 1] I want to create a table in pdf wich will take text from our Python GUI. tell me how to create a table in pdf through Python. 2] How to make two Lableframes adjacent to each other.
Love this tutorial, comprehensive and easy to understand! One thought is that some of this code should be able to be generated from a layout program for Tkinter like I believe you can find for QtPy. Are there anyone that knows of such a program?
Add a: elif not file: under the very end of def open_file() function, if you press cancel button in open file dialog, it stays in '"loading" status instead of browse status: elif not file: browse_text.set("Browse") Great guide, thx for helping us to learn :), subscribed :)
Hi I tried to open some documents which contains both images and texts but I was getting the following error: selected_image = display_images(images[img_idx[-1]]) Can you (or anyone) please let me know how to fix it?
It was very helpful but there were two errors in your video the first was that if won't work if you make a pdf with PowerPoint, and if you take a pdf with no image there sometimes might be a problem...
I do have a bunch of automation tutorials! 😁 They're mostly in the subject of Web Scraping, however you can apply the same principles for other purposes as well. Checkout my Facebook Image Gallery Scraping bot: ruclips.net/video/SsXcyoevkV0/видео.html Or both my Webscraping Instagram with Selenium bots on Github: github.com/MariyaSha/WebscrapingInstagram Or my Commenting Bot live webinar with We Are Growth hackers if you prefer a video: ruclips.net/video/XnEgVZsZgco/видео.html (I told you a have a bunch hahaha 😅) I hope it helps! ☺
@@PythonSimplified hahaha is true. But i say thank you for make video!!! I'm from Argentina and I dont speak good english, but i understand all the video, is great!!!.
by the way, a few lines of code related to the pdf text extraction is deprecated. Sorry if you already know. I've included them here: # read_pdf = PyPDF2.PdfFileReader(file) # deprecated read_pdf = PyPDF2.PdfReader(file) # page = read_pdf.getPage(0) # deprecated page = read_pdf.pages[0] # page_content = page.extractText() # deprecated page_content = page.extract_text()
Hello, thank you so much for this tuto, i have one issue : with some pdfs, i get this error : NotImplementedError: unsupported filter /DCTDecode Can anyone help me please !?
I would like to see your tkinter lessons organized in a playlist Eu gosto muito do visual dos seus layouts (translating)......I really like the look of your layouts
Hi Nadjem, this is actually part 2 of an earlier video of mine, you can find all the previous steps in part 1: ruclips.net/video/itRLRfuL_PQ/видео.html And thank you for letting me know regrading the documentation, I sometimes forget to include it in the video descriptions 😅 Just added it both to this video, and both to the previous Tkinter one. Thanks again! 😄
Hello Maria! I love your videos, they are so easy to follow. Thanks you very much for the time! I'm working on a tkinter app and i need to do it executable, any recommendation? I saw some comments about it and seems kind of IMPOSSIBLE! What do you think? :(
Hi TOP 10! 😃 Tkinter is not gonna work for mobile applications, you're much better-off with Kivy in that case. A note application definitely sounds like a great idea though, as it should be quite simple. I'll consider it for my next projects, thank you for suggesting! 😉
Hi why not you can creat one Facebook group where we can enroll ask you questions related our queries with screen shoot I have face some errors on the python
Hi Mian, I don't have a Facebook account anymore so I won't be able to do that 😅 However, there's already a great Python group on Facebook, I used to be a moderator there before deleting my account: facebook.com/groups/python You can post any Python question there, and lot of lovely people from all around the world will be more than happy to help you. If you're facing any issues with the code I've presented - please post them on Github (just open an issue in the relevant repository, post your code/screenshot/error/comment there and I'll be able to assist in an organized manner). However, I still believe that the best place to post your questions/code problems is in the comments on RUclips - as other viewers may have experienced the exact same problem you're having and they can reply to your comment quickly with a solution... you don't really need to wait for me when there are so many wonderful folks that can help you as well 😀 I hope it helps! 😊
Hi Imran, absolutely yes!! I'll be making Django videos as well, might take a bit of time to get there but it sure is on my "to do" list! 😃 The next GUI videos in line are: PyQt5 (scheduled to be released next week), Flask, Kivy and then Django. The order might change a bit, but these are the main tools I'm focusing on in the very near future 😉
Great pair of tutorials, just what I was looking for. My OCD is kicking in and I'm trying to resolve the menu items moving when the images go from portrait to landscape and back. Demo file "test_pdf1.pdf"
Hi Vladimir, thank you so much for suggesting! 😊 I'll definitely look into it, I believe it would be a fantastic match for the Kivy project I'm planning! Thanks again! 😃
Hi NCZIOOX! 😄 Tkinter is used for Desktop applications, I'm afraid you won't be able to create a web app with it... Django would be your best bet with that, I'll be covering it soon on my channel! 😊 I'm not familiar with Github Pages though, so I can't really provide you with a reliable answer
@@PythonSimplified Thanks for the reply and info! Ive never used Django but I hear its pretty cool, so looking forward to that! Ive used Flask though for my web projects. It has some pretty cool and powerful applications (even ML NLP stuff for my one project)
@@nczioox1116 I was just talking about Flask with Maxim on another comment thread! it must be destiny - I'll be filming a Flask tutorial right after a PyQt5 one! 😁😁 Thank you so much for suggesting, looking forward to check it out! 😊
Thanks for your videos. You're awesome. I have a problem: When I test the display_images function, the app crash. it returns erros on extract_images (functions.py) and images = extract_images(page) on app.py. I'm confused. Greetings from Chile. :8)
Hi rrivillox! 😀 Are you trying to test a PDF file that doesn't contain any images? If that's the case, you'll need to add an else clause to: if '/XObject' in page['/Resources'] In this else clause you'll need to set the img variable to a generic blank image: img = Image.new("RGB", (100, 100), (255, 255, 255)) images.append(img) Or can also turn this into a transparent image by adding an alpha value (opacity). If it's not the case, the most common error people had in this project was changing "filetype" to "filetypes" inside askopenfile. Good luck! and let me know if it worked! 😁
@@PythonSimplified Ok. I put the else clause on if '/XObject' in page['/Resources'] but I got the same error "line 68, in open_file images = extract_images(page)". Sorry. I'm a bad disciple :'(
Hahaha no worries @@rrivillox , if the issue is with open_file - it must be the changing "filetype" to "filetypes" fix when calling "askopenfile", did you try that on your end? I believe it should solve it. If it doesn't - try downloading the finishedProject folder from my github and running it just to make sure you didn't miss anything in your code. If you get the same error with the finishedProject - please open an issue an Github with all the details and I'll look into it 😊 (Hopefully "filetypes" resolves it though)
@@PythonSimplified I'm a blind guy!!!!!! My fault is tested with random pdf files. When I test the application with your example files, it works. Thanks for beeing awesome. :)
But if we open a pdf file without any images, it will throw an error (of course..).. how can I prevent that?
You'll need to add a conditional statement checking if images exist on the page inside the extract_images() function - if they don't exist on the page maybe try to return a blank white image instead so it doesn't break the rest of the code... sorry, it was already a 47 minute video so I decided to keep the rest of the detail for another time 😅
@@PythonSimplified What do you apologize for, for this awesome video xd?
Of course you can't do all the details at once, just wanted to ask.. I tried to add some else statements at the extract_images() function but it goes always out of the range (IndexError). The error is in the following line: "img = images[image_idx[-1]]". We are selecting the last image and if I open a pdf without any images, this error occurs. Somehow I understand the problem but I don't know how to fix it.
@@ihak070 that's exactly where the blank image kicks in! 😉
Try adding the following lines of code inside your else statement:
img = Image.new("RGB", (100, 100), (255, 255, 255))
images.append(img)
This should do the trick! 😀
Just make sure that you're referring to the else clause of:
if '/XObject' in page['/Resources']:
You can also turn this into a transparent image by adding an alpha value (opacity).
I hope I'll have some time in the evening to revise the code and add this handler to PDF files with no images, I'll get to give it a try myself... good luck and let me know if it worked out! 😊
@@PythonSimplified Thank you so much it worked! :)
@@ihak070 yeeey!! I'm glad I could help! Thanks for letting me know! 😁
Six months ago I shelved a hobby project that required image extraction from PDFs as too complex (at that time). Tonight the problem looks like it’s resolved thanks to your expertise and generosity.
Time to start thinking of the project again!
Thank you!!!
Image extraction from PDFs is far from being an easy task - I struggled quite a bit with it myself 😅
The mystery was solved after reading this Stack Overflow thread (Sylvains answer):
stackoverflow.com/questions/2693820/extract-images-from-pdf-without-resampling-in-python
But then displaying them on the interface with Tkinter was another nightmare!!! hahaha 🤣
Anyhow, I hope you find here exactly what you were looking for to complete your project- good luck and let me know how it turned out! 😊
An amusing look back at user interface design in the 1980s. It reminds me of my old Macintosh 30+ years ago. Anyone who uses Tkinter must love that nostalgic look.
Thank you for more Tkinter! Love all your Python vids.
You're welcome Bob! 😁😁😁
I'm glad you're enjoying my videos! 😊
Great detailed tutorial 🔥 I can only imagine the amount of time that went into editing it. Had to do as detailed tutorial for work at one stage and I must have spent more time editing, than writing the code.
Thank you so much for appreciating the hard work Dev Sauce! 😁 I've filmed it on Monday and I finished editing only Saturday morning, this tutorial has tormented me like never before 🤣🤣🤣
Judging by all the lovely comments, it was worth it, but no more Tkinter for me sir!! 😄
@@PythonSimplified HA! So I have to ask? Is Kivy your choice of front end? Aka, what do you choose to use when it's your choice?
@@TheJacklwilliams for desktop applications in particular I'd go for KivyMD! so far it's my favourite both in terms of design and simplicity 😀
@@PythonSimplified THANKS MARIYA! I also have to say you get FIVE GOLD STARS for your responsiveness to your “students”! :-) It’s readily apparent your commitment to your audience and your channel! MANY THANKS!
You are a truly wonderful and informative Pythonista. I’ve been coding Python for a while and have written many scripts detailing the logic of various apps. I’ve been trying to find time to learn a graphical interface library such as tkinter , Kivy or Qt to take these apps from their frameworks to an attractive user experience. I found your videos and I was putting my apps together in no time at all. Thank you, so very much. Please keep teaching. You’re brilliant and talented and I will be watching for more. Luv you♥️. 🤜🤛
Wow! I'm still blushing from your previous comment- and now this??? 😀
Thank you so much Josh, it's a great pleasure reading your messages! I'm really happy to see you're finding my tutorials useful 😁
Just wait until you see the PyQt5 project! I've started it 2 days ago and right now it's over 90% built - it's much much more efficient than Tkinter and I can't wait to share how easy it is to work with!! so stay tuned for next week! 😎
Great content and teacher, congrats! I had this channel recommended by yt. Keep up the good work.
Thank you so much Scooby Snacks! 😄
Really glad you stumbled upon my channel, welcome aboard! 😊
Thank you. Now the font size is visible on mobile phone. Even the explanation of code is excellent for a beginner like me. Thanks again.
Que incrível... passei semanas pensando em uma forma de fazer algo parecido e estava bem perdido. Muito obrigado! Que aula maravilhosa.
Abraços do Brasil.
Thanks for the part 2. I was waiting for it.
You're welcome! enjoy! :) and thank you for the patience! 😁
@@PythonSimplified :)
yessss thank you so much for this, love your explanations and pace with the tutorials
Thank you Winter24!! I'm glad you're enjoying my tutorials! 😁😁
Wow Mariya! So, I subscribed and I looked back at some of your other Python videos. And just... wow! I have been wanting to learn beautiful soup as I’m really interested in scraping data from the web and yeah after the gui lessons I’ll be binge watching your episodes on those topics next. Thanks, dear. I mean it.
Thank you so much for the amazing feedback Josh, I'm really glad you're enjoying my videos! 😁😁😁
Check out the Mechanical Soup tutorial before you dive into Beautiful Soup though,
it's much more intuitive to use and I have a feeling you'll like it better 😉:
ruclips.net/video/drDdb1MBBfI/видео.html
I love the way you present. Subscribed now. Waiting for more videos
Thank you so much Bineesh! 😀
the next video will be posted on Tuesday! 😉
boom, here we see the beautiful lady. she is sharing knowledge on the the GUI. I learn how to get my first GUI app. Thank you!
Great Content. Don't ever stop! Perfect Speed and presentation!
Thank you for your excellent tutorial @Python Simplified. I have a little problem👇👇👇
I get the error below when I try to upload the PDF file in the starting folder:
File "C:\Users\Adada\PycharmProjects\Tkinter -- Project\functions.py", line 41, in extract_images
data = xObject[obj].getData()
AttributeError: 'EncodedStreamObject' object has no attribute 'getData'
First.. nice vids. Good job.. i did learn a few a things.. just wanted to show you one thing
save_btn = Button(root, text="save image", font=("shanti", 10), height=1, width=15)
...
...
save_btn.grid(row=3, column=2)
can also be simplified to
save_btn = Button(root, text="save image", font=("shanti", 10), height=1, width=15).grid(row=3, column=2)
i guess its really left up to personal preference. I just choose to try to avoid having to type repetitive labels.
Fantastic , Thank You Mariya
you are the best teacher i ever seen thanks
Thanks to give me information about thinter
You're welcome, I hope it helps! 😃
Best recommended video i got today from yt
That's awesome! thank you! 😀
Hi, Great vlog, very useful! Looking forward to more videos ;o) BTW, instead of the image counter in save_all(images) function, you could use enumerate() in the for loop, eg "for count, i in enumerate(images):", then you wont need the counter lines.
woman you are a literal goddess and a godsend
Wow, this video was incredibly helpful and easy to follow, thank you so much for taking the time to put it together! 🙏
Really bright and methodical!!! Bravo!
I learn a lot with your videos... thanks for sharing your knowledge
@Python Simplified
@Python Simplified
Please which is the best to learn dear pygui or Tkinter.
I want to delve into software programming/creating GUIs, I want to know the one you would advise me to start with
Thankyou very much, it is really nice video for me for practicing Tkinter GUI also help me a lot to understand new concept.
love from India
Que genia que sos!!!! Saludos desde Argentina, grosa total!!!
Muchas gracias Pedro!! 😁😁😁
Saludos desde Canadá! 🍁
@@PythonSimplified Sos latina? Jajajaja muy buenos videos. Seguí así, una gran ayuda para la gente que quiere aprender. Abrazo.
You are amazing, beautiful and helped me to make a GUI mor nice with this video.
As smart as she is beautiful! That being said, I would love some more in depth explanations as to why we are typing some of the things we are typing. I didn't feel like I was learning much when being told to "type this", but not why to "type this". It could just be me though!
Thank you Nick! It's not just you - it's me not having patience for Tkinter 😜 and to be honest - 45 minute worth of video is already a bit too much 😅
Check out my other GUI tutorials, (Kivy and KivyMD in particular) they're much more detailed and well-explained and the other libraries are a thousand times better anyways! Tkinter looks a bit like it was created for Windows XP 🤣
@@PythonSimplified I will certainly check out your tuts on Kivy. I too felt like Tk was a bit Windows98'esque, but I assumed that I just hadn't developed the proper design skills yet to make it not look like that.
Thank you very much very helpful video love your explanation
Thank you so much for your lovely comment Nasser! 😀
Is it possible to rotate entire words vertically in a textbox? I have managed to make the word descend letter by letter downwards. Is there a way around it in tkinter?
Wow new pc is awesome
I told you it's a beast!!! 😉
I'm waiting for the last accessory to arrive and then I'll share the top secret specs of it! 😁😁😁
I'm blaming the long wait on Canada Post!
Have you thought about separating the logical parts like images or contents to own classes? You could use for example the Classes Images (that handles all the images), Image, Contents and Content. I think this could help to organize the code and shorten the function names. images.getCurrentImage.save() or images.saveAll() could be some calls then. images.saveAll() could iterate over self.images and call the save()-Method for each Image Instance in this list.
Glad I found this channel, keep up the great work.
Thank you so much! 😁
.Hi friend. Thanks for your wonderful video. Here I wait for the next video. Greetings from Venezuela
Congrats for 12K Subscribers. ❤️
Thank you so much Karan!!! I still can't believe it!! 😀😀😀
@@PythonSimplified hhh now it's 20.7K amazing maria
and now 49.7K in no time!
Great work ! you should use Handbreak to compress video
Thank you so much Shafqat! 😀
I'm a huge fan of open-source software! However, I'm using Adobe Suite for all my video + graphic stuff, so if I'm already paying for it - I might as well use it! 🤣
Hi,
I can't find the correct functions package therefore I can't use the methods " display_logo, display_textbox, extract_images"
I've looked over this quite a few times, but I still get the same basic 4 errors:
in extract_images data = xObject[obj].getData()
in open_file images = extract_images(page)
in browse_btn = Button(root, textvariable=browse_txt, command=lambda:open_file(), font=("Raleway", 12), bg="#20bebe", fg="white", height=1, width=15)
in __call__ return self.func(*args)
*Note that I typed the errors in reverse order.
I get the same error in data = xObject[obj].getData()
@@adada4u I know I shouldn't let it, but this one project is really beating me down. In Eclipse (Java), I've never had to deal with import problems. I want to learn Python. However, this project is making me feel incompetent. Doesn't help that I can't seem to find the answer. I've even went the route of installing Anaconda.......which now I have a problem with the PyPDF2 import. *edited: I figured out the import, but still having the same 4 errors I listed.
@@andromydous Don't beat yourself down over this. Bugs are an integral part of every programmer's life. Programmer's arguably spend more time googling solutions to their bugs than on anything else. It's part of the learning curve. It doesn't make you bad at programming.
@@adada4u you might have to update PyPDF2 to the latest version
Thank you.
You're welcome Vic! 😃
i have been searching on the internet but couldn't find it yet. it is how to just display the first page of a PDF file in a tkinter frame or label ?
i assume it should be very simple, right ?
Maam I have two question. 1] I want to create a table in pdf wich will take text from our Python GUI. tell me how to create a table in pdf through Python. 2] How to make two Lableframes adjacent to each other.
why don't you use photoimage() for the button to make the button image
Love this tutorial, comprehensive and easy to understand! One thought is that some of this code should be able to be generated from a layout program for Tkinter like I believe you can find for QtPy. Are there anyone that knows of such a program?
Thank you so much for these videos. They've been very helpful. I see that you've also used Qt for a GUI. Which do you prefer?
Awesome as always..❤️ from India.. looking for django tut
Thank you so much Sivafx! 😁
Django sounds like a plan! I'll start thinking about project ideas! 😉
Veer nice course thanks!. User get to - under w10: pip install PyPDF2 and pip install Pillow, and demo would add window [x] button?
hi, thank you for the video, have a question, how to make an app installer
Wonderful Video. Good Job! :) I got a ValueError message after the 'extract_images' def. "Not enough image data". What can I do to solve this problem?
can u pls tell the name of the application that u have used to design your application before start codding it 6:52
Felt my Python learning is meaningful now.
How can you get a button to show up on a transparent background?
Awesome! but, Instead of copying the text, how can we just directly save the content form the text box/frame (like the way you saved the images)
thank you for being an excellent teacher
Great video. Is it possible to create multiple pages using buttons to navigate but to use the grid setup to place everything?
Very nice, thank you!
Add a: elif not file: under the very end of def open_file() function, if you press cancel button in open file dialog, it stays in '"loading" status instead of browse status:
elif not file:
browse_text.set("Browse")
Great guide, thx for helping us to learn :), subscribed :)
Hi I tried to open some documents which contains both images and texts but I was getting the following error:
selected_image = display_images(images[img_idx[-1]])
Can you (or anyone) please let me know how to fix it?
It was very helpful but there were two errors in your video the first was that if won't work if you make a pdf with PowerPoint, and if you take a pdf with no image there sometimes might be a problem...
what is this Wireframes... i searched in google but not understood.
Btw that was a nice and simple explanation of code so thankyou.
It would be great if you do some DS&A or automation tutorials in Python.
I do have a bunch of automation tutorials! 😁
They're mostly in the subject of Web Scraping, however you can apply the same principles for other purposes as well.
Checkout my Facebook Image Gallery Scraping bot:
ruclips.net/video/SsXcyoevkV0/видео.html
Or both my Webscraping Instagram with Selenium bots on Github:
github.com/MariyaSha/WebscrapingInstagram
Or my Commenting Bot live webinar with We Are Growth hackers if you prefer a video:
ruclips.net/video/XnEgVZsZgco/видео.html
(I told you a have a bunch hahaha 😅)
I hope it helps! ☺
Thank you for sharing!!!
But I didn't share it yet, it's still unlisted! hahaha
Hold on I'm about to add all the files to Github and get everything done and posted! 😉
@@PythonSimplified hahaha is true. But i say thank you for make video!!! I'm from Argentina and I dont speak good english, but i understand all the video, is great!!!.
by the way, a few lines of code related to the pdf text extraction is deprecated. Sorry if you already know. I've included them here:
# read_pdf = PyPDF2.PdfFileReader(file) # deprecated
read_pdf = PyPDF2.PdfReader(file)
# page = read_pdf.getPage(0) # deprecated
page = read_pdf.pages[0]
# page_content = page.extractText() # deprecated
page_content = page.extract_text()
Which python are you using?
Are you able to make wimdow sizes and coordinates for elements responsive?
Hello, thank you so much for this tuto, i have one issue :
with some pdfs, i get this error : NotImplementedError: unsupported filter /DCTDecode
Can anyone help me please !?
What keyboard do you use?
Thank you... go Mariah
Please make more projects on tkinter
I would like to see your tkinter lessons organized in a playlist
Eu gosto muito do visual dos seus layouts (translating)......I really like the look of your layouts
thanks for the idea
Good job 😍😍😍
But you need to introduce steps and library from documentation 😕
Hi Nadjem, this is actually part 2 of an earlier video of mine, you can find all the previous steps in part 1:
ruclips.net/video/itRLRfuL_PQ/видео.html
And thank you for letting me know regrading the documentation, I sometimes forget to include it in the video descriptions 😅
Just added it both to this video, and both to the previous Tkinter one.
Thanks again! 😄
amazing tutorial! thanks for this
Thank you! 😃
Thank you lady...
Is there some feature that can get the system default light scheme? Like dark mode and light mode?
Thank you for the awesome tutorial. One quick question, how do I add more windows to the application rather than just having one window (the root)?
Whre to download the wirframe youre using?
Hello Maria! I love your videos, they are so easy to follow. Thanks you very much for the time!
I'm working on a tkinter app and i need to do it executable, any recommendation? I saw some comments about it and seems kind of IMPOSSIBLE! What do you think? :(
Executable in Windows!
Super! Love you!
Pls can u try to create samsung notes like application in python tkinter.
Hi TOP 10! 😃
Tkinter is not gonna work for mobile applications, you're much better-off with Kivy in that case.
A note application definitely sounds like a great idea though, as it should be quite simple.
I'll consider it for my next projects, thank you for suggesting! 😉
I love ur collar on the neck
is there anyway to integrate this with pandasgui?
I like python developer girls 😂😂😂😂
Sorry I joked
You are so good teacher and good python developer
Thank you, I'm glad you're enjoying my tutorials! 😀
Hi why not you can creat one Facebook group where we can enroll ask you questions related our queries with screen shoot I have face some errors on the python
Hi Mian, I don't have a Facebook account anymore so I won't be able to do that 😅
However, there's already a great Python group on Facebook, I used to be a moderator there before deleting my account:
facebook.com/groups/python
You can post any Python question there, and lot of lovely people from all around the world will be more than happy to help you.
If you're facing any issues with the code I've presented - please post them on Github (just open an issue in the relevant repository, post your code/screenshot/error/comment there and I'll be able to assist in an organized manner).
However, I still believe that the best place to post your questions/code problems is in the comments on RUclips - as other viewers may have experienced the exact same problem you're having and they can reply to your comment quickly with a solution... you don't really need to wait for me when there are so many wonderful folks that can help you as well 😀
I hope it helps! 😊
What android runtime would you recommend for python 3.6?
Love your vids, could you make vids on django...
Love from India
Hi Imran, absolutely yes!! I'll be making Django videos as well, might take a bit of time to get there but it sure is on my "to do" list! 😃
The next GUI videos in line are: PyQt5 (scheduled to be released next week), Flask, Kivy and then Django.
The order might change a bit, but these are the main tools I'm focusing on in the very near future 😉
@@PythonSimplifiedThanks so much for the reply, I'm eagerly waiting for your next tutorials
thanks for greate tuition
beautiful, will b doing gui for robot in tkinter acc to yr example ..inspirated me
Great pair of tutorials, just what I was looking for.
My OCD is kicking in and I'm trying to resolve the menu items moving when the images go from portrait to landscape and back. Demo file "test_pdf1.pdf"
thanks, could you share the finish code github?
I love your videos. Can you make videos with GTK? Thank you!!
Can u show us the PyHook module, please?
Maybe add video about convert .py to .app (android) without ubuntu, only windows10?
Hi Vladimir, thank you so much for suggesting! 😊
I'll definitely look into it, I believe it would be a fantastic match for the Kivy project I'm planning!
Thanks again! 😃
I tried that kind of monitor twice. Threw it out thrice or smth
Can Tkinter be used for web applications? like published on github pages?
Hi NCZIOOX! 😄
Tkinter is used for Desktop applications, I'm afraid you won't be able to create a web app with it...
Django would be your best bet with that, I'll be covering it soon on my channel! 😊
I'm not familiar with Github Pages though, so I can't really provide you with a reliable answer
@@PythonSimplified Thanks for the reply and info! Ive never used Django but I hear its pretty cool, so looking forward to that! Ive used Flask though for my web projects. It has some pretty cool and powerful applications (even ML NLP stuff for my one project)
@@nczioox1116 I was just talking about Flask with Maxim on another comment thread! it must be destiny - I'll be filming a Flask tutorial right after a PyQt5 one! 😁😁
Thank you so much for suggesting, looking forward to check it out! 😊
Thanks for your videos. You're awesome. I have a problem: When I test the display_images function, the app crash. it returns erros on extract_images (functions.py) and images = extract_images(page) on app.py. I'm confused. Greetings from Chile. :8)
Hi rrivillox! 😀
Are you trying to test a PDF file that doesn't contain any images? If that's the case, you'll need to add an else clause to:
if '/XObject' in page['/Resources']
In this else clause you'll need to set the img variable to a generic blank image:
img = Image.new("RGB", (100, 100), (255, 255, 255))
images.append(img)
Or can also turn this into a transparent image by adding an alpha value (opacity).
If it's not the case, the most common error people had in this project was changing "filetype" to "filetypes" inside askopenfile.
Good luck! and let me know if it worked! 😁
@@PythonSimplified Ok. I put the else clause on if '/XObject' in page['/Resources'] but I got the same error "line 68, in open_file
images = extract_images(page)". Sorry. I'm a bad disciple :'(
Hahaha no worries @@rrivillox , if the issue is with open_file - it must be the changing "filetype" to "filetypes" fix when calling "askopenfile", did you try that on your end?
I believe it should solve it. If it doesn't - try downloading the finishedProject folder from my github and running it just to make sure you didn't miss anything in your code.
If you get the same error with the finishedProject - please open an issue an Github with all the details and I'll look into it 😊
(Hopefully "filetypes" resolves it though)
@@PythonSimplified I'm a blind guy!!!!!! My fault is tested with random pdf files. When I test the application with your example files, it works. Thanks for beeing awesome. :)
amazing sis
awsome!
Thank you! 😊