Build A Text Editor Part 2 - Open and Save As Files - Python Tkinter GUI Tutorial #105

preview_player
Показать описание
In this video we'll continue building our Text Editor with Tkinter and Python. Well add the "New File" function, the "Open File" function, and the "Save As File" Function.

Opening and Saving files with Python and Tkinter are pretty easy, in fact we've looked at doing this exact thing in past videos. And creating a "New" file is done simply by deleting whatever was in our Text Widget already...and we know how to do that already too!
Рекомендации по теме
Комментарии
Автор

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! 🙂

stormybear
Автор

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

Codemycom
Автор

Amazing tutorial...
I have been following u from the start when u uploaded this series.

adistar-
Автор

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

jager
Автор

thankuuu so much for this❤❤❤ god bless you

rishibakshi
Автор

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

aviralkaushik
Автор

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?

leobozkir
Автор

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?

helmiahmadfauzi
Автор

Hi, I try this method with a button to save images but it's not working

shubhammali
Автор

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.

diabolobeays
Автор

Hello John! Could you make a tutorial for building a Text editor using kivy also?

samrachkem
Автор

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: <_io.TextIOWrapper name = '/ home / asklad / PyWriter / sample.txt' mode = 'r' encoding = 'UTF-8>'. At first, I thought I broke the code. I write all my def () in a separate module. But when im starting a new project and pasting your code, problem still exists. Got an idea what I'm doing wrong? I'm working on Ubuntu, Python 3.9. Sorry for my English. Greetings from Poland

skladus
Автор

Is there a way to save the file without putting the name manually?

estebanbr
Автор

Can I save my tkinter window with it's widget as a pdf?

solomonwiredu
Автор

Hai John!! For me 'File as been saved' message is not generating? please help me out.

arunbeckham
Автор

What’s the frame.grid_forget() alternative for using .pack()?

afc_zanzoon
Автор

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)]

walthansen
Автор

Hi! Can you please make our app auto update using esky or something else using something like github?

Acem
Автор

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.

siyabonganxumalo
Автор

hello, My status bar didn't work from the previous tutorial itself. Can you help me out....

nisargchaudhary