@@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.
@@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.
@@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?
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
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.
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. 💪🏽💪🏽💪🏽❤️❤️❤️
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!
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 😉
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
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!
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!
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
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!
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=.
@@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 :-)
Приветик 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 с наступающим! 🎄🎄🎄
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*
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
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! 😉
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 😉
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.
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!
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...
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?
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! 😁
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 :)
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
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!
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.
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 🤣
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')
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... :)
@@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 ;)
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!
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
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.
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 😊
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.
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 ;)
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!!
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
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! 😀
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 🙂
@@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 👍
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?
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! 😀
@@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)
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.
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
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 :(
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! 😀
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!!! 😁
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 :)
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! 😊
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) 😉
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..
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.
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 🤓
@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 ?
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...
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
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!
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)
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.
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
# 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()
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
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.
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?
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. :-)
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...
"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 😃
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()
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.
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
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.
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
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 😊