Mr. Elder, I really enjoy your videos, you have a gentle enthusiasm that makes your content very relatable. I'm going to hijack your text editor project and morph it into a batch file editor. Yes, I'm THAT old school, I still use batch files for easy automation. And,Yes, sir, I do miss DOS! 🙂
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam Channel: bit.ly/2UFLKgj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/3fLFQ8p
Hello John! Thanks for this awesome tutorial. But I have a question: In the previous tutorial, you used "1.0", (string) but now you used a 1.0. (float) What is the difference?
This is insane I came here for ideas, because I'm making my text editor in electron.js and React, but I might as well switch to this... It's so so SO MUCH SIMPLER than js
Hey, John, thank you for this video, but I have one problem, whenever I text something and then use save as file, the window title shows up a folder path of the file like "Icon/sample.txt". So, how do I get rid of that only to show the filename instead?
Hi. Thanks for all the tutorial videos. I've learned so much from your movies. I have a little problem with the status bar. When I open a file, the status bar does not show the path to the file. Instead it says:
@@CodemycomOMG! Ok, problem solved. Funny thing. I mess with the line: text_file = filedialog.askopenfile(), instead text_file = filedialog.askopenfilename(). Everything is working fine now. And your code isn't working because i still reload my old code:D. Too many windows open:P. Sorry for the trouble;)
Love these videos.... did find something though.... for the 'filetypes' at the end of the filedialog line, mine has to have [ ] at one point. [(file type, file ext)]
i have a problem about this code line here stuff = text_file.read() and the error return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 847: character maps to
Sir John, Please make a video for how to print something with printer hardware By python. Please make this video as soon as possible. By the way thank you for teaching us different languages for developing and now I can develpe many app with the help of you Thank you John Sir Regards, Anil Kumar Kaushik
@@Codemycom Sir first of all thank you for replying, sir I want to ask after how much time(approx.) or how much videos you will make the video on printing trough printer hardware. Please sir tell me how much approx. time should I wait to watch the video on such a wonderful topic? Please reply sir. Thank You John Sir Regards Aviral Kaushik (R. S. V. P)
Codemy.com hello again. What i mean is for example when there is an update for discord it auto updates itself on program startup. how can we do that on our python app?
Hey, everytime i try to Save As... i get this Error: " File ". File ".../main.py", line 16, in saveas_file text_file = open(text_file, 'w') TypeError: expected str, bytes or os.PathLike object, not _io.TextIOWrapper" Help.
@@nisargchaudhary1980 Sorry, but you did not copy the same or else it would work. Put it aside for a day and check it again, the error will likely pop right out then.
Hi. I am waiting for django tutorial. Are you planning for more tutorials on djano or not. Or what about next tutorial topics. Thanks Respect for you from @Pakistan
thanks so much, but I have one error that I cannot find the answer to anywhere, not even stack overflow. I know its coming from the root,config(menu=my_menu) I use "wn" instead of root though here is the error:" _tkinter.TclError: unknown option "-menu"" btw. I fixed my python IDLE :D, I might just make my own for fun now, well after I figure out the error though
@@Codemycom here is the reall code: my_menu = Menu(wn) wn.config(menu=my_menu) def new_file(): my_text.delete("1.0", END) wn.title("New File - FIle") status_bar.config(text="New File Created") And the original error is: Traceback (most recent call last): File "/Users/MyName/Documents/ProjectName.py", line 68, in file_menu.add_command(label="New File", menu=new_file) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 3299, in add_command self.add('command', cnf or kw) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 3286, in add self.tk.call((self._w, 'add', itemType) + _tkinter.TclError: unknown option "-menu"
@@Codemycom I mean, I made the "Save as" function and when I click the save as button it shows the file explorer and everything but kit does not actually "save" the files there. When I try to find them they are not on the folder. I can give you my code if you want to.
Mr. Elder, I really enjoy your videos, you have a gentle enthusiasm that makes your content very relatable. I'm going to hijack your text editor project and morph it into a batch file editor. Yes, I'm THAT old school, I still use batch files for easy automation. And,Yes, sir, I do miss DOS! 🙂
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My TH-cam Channel:
bit.ly/2UFLKgj bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
▶️ Get The Code
bit.ly/3fLFQ8p
Amazing tutorial...
I have been following u from the start when u uploaded this series.
Awesome, thanks!
Great Teacher,
Thanks!
Hello John! Thanks for this awesome tutorial. But I have a question: In the previous tutorial, you used "1.0", (string) but now you used a 1.0. (float) What is the difference?
One is a number, one is not a number.
This is insane
I came here for ideas, because I'm making my text editor in electron.js and React, but I might as well switch to this...
It's so so SO MUCH SIMPLER than js
yeah js kind of sucks lol
@@Codemycom Tell me about it
It's like an abusive marriage where I have to do all the work :/
Python, on the other hand, seems more of a casual hookup
@@jager0724 yep
thankuuu so much for this❤❤❤ god bless you
Welcome!
Thanks for this great video
Welcome!
Thanks! Amazing videos!
Glad you like them!
Hey, John, thank you for this video, but I have one problem, whenever I text something and then use save as file, the window title shows up a folder path of the file like "Icon/sample.txt". So, how do I get rid of that only to show the filename instead?
Hi. Thanks for all the tutorial videos. I've learned so much from your movies. I have a little problem with the status bar. When I open a file, the status bar does not show the path to the file. Instead it says:
Sorry, I don’t know what’s going on but it might have something to do with the Linux file system.
@@CodemycomOMG! Ok, problem solved. Funny thing. I mess with the line: text_file = filedialog.askopenfile(), instead text_file = filedialog.askopenfilename(). Everything is working fine now. And your code isn't working because i still reload my old code:D. Too many windows open:P. Sorry for the trouble;)
When updating the status bar, use " root.title(f'{name.name} - Editor Title') "
Nice Video!
Thanks!
Love these videos.... did find something though.... for the 'filetypes' at the end of the filedialog line, mine has to have [ ] at one point. [(file type, file ext)]
thanks
Hello John! Could you make a tutorial for building a Text editor using kivy also?
What’s the frame.grid_forget() alternative for using .pack()?
pack_forget() come on man...
i have a problem about this code line here
stuff = text_file.read()
and the error
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 847: character maps to
Sir John, Please make a video for how to print something with printer hardware By python. Please make this video as soon as possible.
By the way thank you for teaching us different languages for developing and now I can develpe many app with the help of you
Thank you John Sir
Regards,
Anil Kumar Kaushik
I likely will look at print at some point
@@Codemycom Sir first of all thank you for replying, sir I want to ask after how much time(approx.) or how much videos you will make the video on printing trough printer hardware. Please sir tell me how much approx. time should I wait to watch the video on such a wonderful topic? Please reply sir.
Thank You John Sir
Regards
Aviral Kaushik
(R. S. V. P)
@@aviralkaushik3171 Sorry, I have no idea
Is there a way to save the file without putting the name manually?
Sure, using a file dialog box
Hi! Can you please make our app auto update using esky or something else using something like github?
No clue what you mean
Codemy.com hello again. What i mean is for example when there is an update for discord it auto updates itself on program startup. how can we do that on our python app?
@@Acem8887 Oh that's way more complicated then any of these simple videos...
Hi, I try this method with a button to save images but it's not working
What did you do differently from the video?
Hey, everytime i try to Save As... i get this Error: " File ". File ".../main.py", line 16, in saveas_file
text_file = open(text_file, 'w')
TypeError: expected str, bytes or os.PathLike object, not _io.TextIOWrapper"
Help.
Use " open(text_file.name, 'w') "
Hi John
How can you open a file without using filedialog? The file is a docx file not text and is on the same folder as the code.
Import os and use os.startfile("Path to file/File name")
This will open the file using default apps like MS Word for .docx, etc.
Can I save my tkinter window with it's widget as a pdf?
Sure, but I don't have any videos on that
Hai John!! For me 'File as been saved' message is not generating? please help me out.
You likely have a typo in your code
Can u do a tutorial to show line numbers in the text editor?
What do you mean by line numbers?
@@Codemycom Like to the side where it displays every next lines number at the side, just like VS Code or any other editor of sorts.
@@justone4272 Ah got it...probably won't do that for this text editor.
@@Codemycom Alright, cant ask for more, and I am thankful enough that this was at least here. Again thank you a lot!
@@justone4272 :-)
hello, My status bar didn't work from the previous tutorial itself. Can you help me out....
Check your code for errors vs the video
@@Codemycom
I checked , I copied same but it's not showing the status bar itself
@@nisargchaudhary1980 Sorry, but you did not copy the same or else it would work. Put it aside for a day and check it again, the error will likely pop right out then.
Hi.
I am waiting for django tutorial. Are you planning for more tutorials on djano or not.
Or what about next tutorial topics.
Thanks Respect for you from @Pakistan
Will get back to the django blog at some point.
@@Codemycom i am waiting for this.
@@Codemycom Thanks
Please make a video on how to make a maptlotlib graph appear in the same window with tkinter. Not pop up in another window.
You probably need to use the canvas for that
@@Codemycom Sir could you make a tutorial for that. Please
@@suryanshtokas6337 Maybe someday
@@Codemycom Thanks sir. Sentdex did one but you are such a great teacher so I was kinda hoping that you'd do one
thanks so much, but I have one error that I cannot find the answer to anywhere, not even stack overflow.
I know its coming from the root,config(menu=my_menu) I use "wn" instead of root though
here is the error:" _tkinter.TclError: unknown option "-menu""
btw. I fixed my python IDLE :D,
I might just make my own for fun now, well after I figure out the error though
it should be root.config not root,config
@@Codemycom oh, I have that in the original. Sorry I just misspeled
@@Codemycom here is the reall code:
my_menu = Menu(wn)
wn.config(menu=my_menu)
def new_file():
my_text.delete("1.0", END)
wn.title("New File - FIle")
status_bar.config(text="New File Created")
And the original error is:
Traceback (most recent call last):
File "/Users/MyName/Documents/ProjectName.py", line 68, in
file_menu.add_command(label="New File", menu=new_file)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 3299, in add_command
self.add('command', cnf or kw)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 3286, in add
self.tk.call((self._w, 'add', itemType) +
_tkinter.TclError: unknown option "-menu"
@@Zhisaoka Then you have some other typo in your code...check it against the code in the video.
@@Codemycom I tryed, but I will again.
Thanks
Great!
Thanks!
nice
Thanks
Sir could you please add a print option.
Not a bad idea.
@@Codemycom Thx Sir
@@aakarshkumar6935 Sure thing
Can We Save The TXT File As PDF?
Sure
@@Codemycom First Of All Thank You For Replying, I tried it but when I opened the pdf file it says something went wrong y I got this Error?
@@bharaths7816 Well yeah, it takes a lot of specific coding to do this.
@@Codemycom Ohh So Can You Please Make A Specific Video For It Asap It Would Be A Great Help For Me And Others? 🤘
@@bharaths7816 MIght do that yes
Hi sir, I'm new to your channel and I really like how you teach, but I'm just 14 years old can I do this course?
Plz tell
Try it and see...there's nothing stopping you :-)
@@Codemycom Thnx a lot sir, I'll sure start it tomorrow 👍🏼
@@karanindersingh8257 Why not today? People who say they'll start things tomorrow, never do.
the save as isnt working
nvm solved
@@dioovaheaven3265 how
The save as does not actually save the files
Huh?
@@Codemycom I mean, I made the "Save as" function and when I click the save as button it shows the file explorer and everything but kit does not actually "save" the files there. When I try to find them they are not on the folder. I can give you my code if you want to.
@@mastakouris What did you do differently than me? You likely have a typo.
@@Codemycom ok I fixed it
@@mastakouris cool
Plz share source code
Check pinned comment for link
gime me code please
Code is always in the pinned comment
.