Build A Text Editor Part 3 - Save Files - Python Tkinter GUI Tutorial #106

preview_player
Показать описание
In this video we'll build out the Save function in our text editor with Tkinter and Python.

In the last video we looked at "Save-As" and in this video we want to build out "Save". The difference between the two is subtle. With Save, we assume that there's already an open file, that already has a filename...we just want to save it. With Save-As, there isn't yet a filename so we need to create one.

But that means we need to build out a mechanism to keep track of our opened file's name! We'll do that in this video.
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

I am not good at English but I can understand what he teaches. It is magic. John Elder is a magician. He is the best teacher I have ever seen. Thank you, Sir

isuruprasaddilhara
Автор

I was about to give up, then I found your series. Now i'm coding nonstop, thank you!!

yeoucheoub
Автор

I totally impressed by your quality am going to complete this series the meantime of learning that, I made over 5 projects in python tkinter....and that happens only for are really a genius....thanks for guiding you from India.

SammarpanDasguptaOfficial
Автор

these videos are EPIC keep it up man i love all of this

yaman
Автор

I dont have teacher to learn python. You are my teacher😊😊😊

praveenm
Автор

Hey man you forgot the global variable in save as def ... if you save as and then try to save again the thing goes to save as again. Very nice videos simple and straight to the point

rodrigorosario
Автор

I like your content it's great. Keep it up

pythoncoder
Автор

Hey just something that you missed is that you also need to update your global text is save as otherwise save will keep trying to save as if you make a new document.

matthewneal
Автор

Hey man, thank you for this video! But you made a mistake I think. If you press the button "save as" you can choose where you want to save it and it works! But if you change the text after you cant press on save. Because if you press on save then the save as windows pops up again. Do you know how to solve it? :)

mvviral_
Автор

i not watch the complete. I only listen "Hi John Elder is here." But i know this video is also amazing like other videos.

NotBeHaris
Автор

In this video,
you merely show how to open/read/edit and then save pure text file.
Please kindly give another video to teach and guide me
how to save a file whose content has both Text and Image/Object content.

Hope to see that. Thanks a lot.

ifqldok
Автор

when we load the project file, entered the text and save the file, very first time, it is not saving. only it is saving if we did new file.
i thing need to add this line

global open_status_name
open_status_name=False
root.title('New File - Textpad!')

def new_file():
my_text.delete(1.0, END)

Learnobyte
Автор

12:12 Show popup

#Put status update or popup code
showinfo("File Saved", "Your file was saved to a directory!!")

sailendrachettri
Автор

How to save the image with text inside the text box when we do save as file

thedj
Автор

I am running into a problem. When making the save function and then running it when i press save it gives me an error. It says 'text_file = open(open_status_name, 'w')
TypeError: expected str, bytes or os.PathLike object, not TextIOWrapper'. Does anyone have a solution to this. I have been looking everywhere for about 30 mins now

ExecuteStyxzy
Автор

I can SAVE the file for the first time, but more than once. second time it uses the save_as

yeoucheoub
Автор

We can continue the previous text if just save it will comeback to save as file

_BayuSurbakti
Автор

hi sir how can we this sample Text in printing on paper in specifc are means how can we print txt file on specifc are on paper???

akcandlestick
Автор

It is possible to integrate turtle graphics with python Kivi app

rohitsonawane