Read And Write To Text Files - Python Tkinter GUI Tutorial

  Рет қаралды 62,311

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 126
@Codemycom
@Codemycom 4 жыл бұрын
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My KZbin 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
@userb8a
@userb8a 3 жыл бұрын
Even the pinned comment is incredibly well-organized lmao
@Codemycom
@Codemycom 3 жыл бұрын
@@userb8a ha yep
@mariorossi1456
@mariorossi1456 4 жыл бұрын
100 episodes of clear explanations and high quality....keep it up man, thank you so much!
@Codemycom
@Codemycom 4 жыл бұрын
You're welcome!
@kapibara2440
@kapibara2440 4 ай бұрын
Another captivating video! My next career step is going to be that of a programmer and that is because of such insightful youtube channels like this one 👏🙂
@Codemycom
@Codemycom 4 ай бұрын
Happy to hear it!
@majestyalt1844
@majestyalt1844 3 жыл бұрын
I am goign to comment on every video i watch from him, ITS SO HELPFUL THANK YOU SO MUCH.
@Codemycom
@Codemycom 3 жыл бұрын
Happy to help!
@eduardovillar2211
@eduardovillar2211 4 жыл бұрын
Thank you very much for your great explanation, even english is not my mother tongue you are showing in a really understandable way. Greetings from Spain!
@Codemycom
@Codemycom 4 жыл бұрын
Glad it was helpful!
@asheeshmathur
@asheeshmathur Жыл бұрын
Excellent tutorial, covered all parts
@Codemycom
@Codemycom Жыл бұрын
Thanks
@RyanDanielG
@RyanDanielG 3 жыл бұрын
Smash that like button guys n gals! its free! great python tkinter tutorial, Codemy. Thanks
@ismaelh256
@ismaelh256 3 жыл бұрын
All these Tkinter tutorials are awesome has been extremely helpful
@Codemycom
@Codemycom 3 жыл бұрын
Glad you like them!
@akramelomrani8728
@akramelomrani8728 3 жыл бұрын
100 haha you are in the road of 200 videos and I really enjoy this tkinter . All the content creators are underating this module but if used proparly It can be so powerful and easy
@Codemycom
@Codemycom 3 жыл бұрын
Ha check the playlist, there's nearly 170 there already
@akramelomrani8728
@akramelomrani8728 3 жыл бұрын
@@Codemycom yeah I saw it pretty insane for a single module in python but I think there is still some stuff you could learn to us
@EbtehajFakhri
@EbtehajFakhri 9 ай бұрын
Thanks for your nice tutorial. but I needed to do a similar thing with listboxes.can you help me with that?
@Codemycom
@Codemycom 9 ай бұрын
I have a listbox tutorial somewhere in the playlist
@ԴավիթՀարությունյան-ծ4գ
@ԴավիթՀարությունյան-ծ4գ 4 жыл бұрын
Yuhu 100 th video for learning tkinter!!
@Codemycom
@Codemycom 4 жыл бұрын
:-)
@bharatrc6055
@bharatrc6055 3 жыл бұрын
thank you, your videos were very helpful and very nice explanation too.
@Codemycom
@Codemycom 3 жыл бұрын
Glad it was helpful!
@AlazarBaharuGoogle
@AlazarBaharuGoogle 3 жыл бұрын
Thanks for the best python tkinter tutorial bro!!!
@Codemycom
@Codemycom 3 жыл бұрын
Welcome
@ArashFeizpour
@ArashFeizpour 4 жыл бұрын
Thanks for your great instructions.. Though I'm getting the following error: "TclError: no display name and no $DISPLAY environment variable" and cannot seem to find a solution for it.. I am using a Jupyter notebook running with a hosted runtime. I think the problem is that the default display for the code does not support the pop-up window.
@Codemycom
@Codemycom 4 жыл бұрын
Yeah you can't really expect to use Jupyter for something like this...
@bird6372
@bird6372 3 жыл бұрын
I doubt that you'll see this in time but I'm trying to create a 'receipt' of sorts so that when you click a button it takes the price and selected buttons e.g. radio buttons and writes it all out. Can't even get my program to read from a text document atm, let alone write to it depending on widgets. Could my fault be due to using apple software? I've finally found a method for it to find the file itself but now the text box isn't displaying what is in the file when the button is pressed yet I've followed the instructions directly. Any advice?
@cubingmania8338
@cubingmania8338 3 жыл бұрын
Hiya great video learnt a lot but I'm having issues with the .insert function I'm using python idle is there a different command i could use thx
@Codemycom
@Codemycom 3 жыл бұрын
Sorry, I don't use or recommend IDLE
@GIS_World
@GIS_World 4 жыл бұрын
Great work....👏👏👏🙇🙇. Congratulations...💐💐💐
@Codemycom
@Codemycom 4 жыл бұрын
Thanks a lot 😊
@upprrdimensions892
@upprrdimensions892 4 жыл бұрын
plz talk more about ttk widgets.... It will be helpful
@Codemycom
@Codemycom 4 жыл бұрын
I have videos in the playlist on all the ttk widgets
@KenDedes94
@KenDedes94 3 жыл бұрын
Is it possible to import Excel Sheet? I have this personal project I wanted to be able to import excel sheet then manipulate the data in the python.. Is that at all possible?
@Codemycom
@Codemycom 3 жыл бұрын
yes, I have a course at codemy.com that teaches python and excel
@RuhulAmin-bo7qt
@RuhulAmin-bo7qt 3 жыл бұрын
Your videos helped me to solve problems in my projects. Can you make a video of generating invoices from the database to print(on paper)?
@Codemycom
@Codemycom 3 жыл бұрын
I think I have a video on basic printing already
@epic6148
@epic6148 3 жыл бұрын
Is there any way that when I clicked the open file or the show text, it doesn't repeat what the file contains? I just want that when I press the button, the text that only contains will only show once, not many times, even I clicked the open file button multiple times, it will just show the text that the file contains just once, thank you!!
@Codemycom
@Codemycom 3 жыл бұрын
Sure, set a counter and use an if statement
@Kennerdoll
@Kennerdoll 3 жыл бұрын
what if i want to specify the name of the file when saving?
@AbdulRehman-wc8yd
@AbdulRehman-wc8yd 4 жыл бұрын
how do i make a copy of the existing file and edit the copied file?
@mendes0389
@mendes0389 3 жыл бұрын
My python isnt recognizing the "insert()" function nor the "END" one, is there any solution to that?
@Codemycom
@Codemycom 3 жыл бұрын
Your python recognizes it just fine...that's not a thing. You typed something wrong.
@catherinehall4970
@catherinehall4970 2 жыл бұрын
I had same problem. I import tkinter like this: import tkinter as tk Then I need to use my_text.insert(tk.END, "hi")
@raymondbanda6105
@raymondbanda6105 3 жыл бұрын
How do you save the file without having to open the browse window every time you hit save?
@yhiski
@yhiski 4 жыл бұрын
Hi, Thanks for the video! I have a short question: How can I save that input txt into a variable (and not a file) and to use it after I close the root window? I'd like to get some numbers and do some calculation with the variables, after the user finish entering the data.
@Codemycom
@Codemycom 4 жыл бұрын
You can't save variables after a program closes, unless you save that data to a file or database or something.
@yhiski
@yhiski 4 жыл бұрын
@@Codemycom Thanks a lot!
@NEXC
@NEXC 3 жыл бұрын
@@Codemycom how to do this can u Make video
@Codemycom
@Codemycom 3 жыл бұрын
@@NEXC I have lots of videos about using databases
@brunorcabral
@brunorcabral 3 жыл бұрын
you could save the variable as a global variable and do the calculations after the root.mainloop()
@talano9375
@talano9375 4 жыл бұрын
Is there a way I can have the text save to the notepad but not delete what was previously in it?? Im trying to make it so i can store info.
@Codemycom
@Codemycom 4 жыл бұрын
sure...append it...google python file append
@Acem8887
@Acem8887 4 жыл бұрын
thank you for helping me making my youtube downloader it looks beautiful becouse of you love you so much keep it up ❤️
@Codemycom
@Codemycom 4 жыл бұрын
Glad you found what you needed :-)
@billstrain1
@billstrain1 4 жыл бұрын
Great work. Keep it up. Learn lot of its.
@Codemycom
@Codemycom 4 жыл бұрын
Glad you liked it!
@maatsWsson
@maatsWsson 4 жыл бұрын
Great job as usual Mr Elder. A question for an unrelated video you made; please could you help solve the problem with pyinstaller failing to compile programs which include pyttsx3 import to .exe?
@jenilchudgar
@jenilchudgar 3 жыл бұрын
Nice Video!
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@harshaldeshpande2633
@harshaldeshpande2633 4 жыл бұрын
100 💯💯 th episode 💐💐💐
@Codemycom
@Codemycom 4 жыл бұрын
Woohoo!
@LuckysLukes
@LuckysLukes 2 жыл бұрын
Im gettin the NameError: name 'my_text' is not defined, when im trying to get text to the box.. anny ide? in the open_txt def, my_text is red, so i cant find it..
@Codemycom
@Codemycom 2 жыл бұрын
Did you not name it my_text when you created it?
@Skirbiy
@Skirbiy 3 жыл бұрын
Hi! i have a question is it possible to do combobox.current('red') instead of combobox.current(0) ?
@ayansinha2355
@ayansinha2355 3 жыл бұрын
have you provided this code anywhere......pls let me know
@Codemycom
@Codemycom 3 жыл бұрын
Of course, all the code is always linked in the pinned comment.
@juliovicenteperez7172
@juliovicenteperez7172 4 жыл бұрын
A tutorial on how to send that text file to the printer to print it, please! Thank You, very much!
@Codemycom
@Codemycom 4 жыл бұрын
Yes I'll probably do that
@learnwithnawf246
@learnwithnawf246 4 жыл бұрын
Hurray, reached 100!!!
@Codemycom
@Codemycom 4 жыл бұрын
Congrats!
@didierleprince6106
@didierleprince6106 4 жыл бұрын
Merci pour votre vidéo
@Codemycom
@Codemycom 4 жыл бұрын
:-)
@dr.kishorkumar
@dr.kishorkumar 3 жыл бұрын
Dear sir can you tell me how to write an array in Text
@Codemycom
@Codemycom 3 жыл бұрын
What do you mean? An array in python is called a list. They are list_name = ['thing', 'thing', 'thing']
@dr.kishorkumar
@dr.kishorkumar 3 жыл бұрын
@@Codemycom thank you very much for your reply... I mean to say that how write any matrix /numpy array in the text box.... Sorry for inconvenience... I am just new learner so it takes time to adopt the terms used in python..
@dimitriosdesmos4699
@dimitriosdesmos4699 4 жыл бұрын
another useful video
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@mengohiz
@mengohiz 2 жыл бұрын
can you add the full code in the description
@Codemycom
@Codemycom 2 жыл бұрын
No, the link to the full code is always in the pinned comment.
@ClusterSeries
@ClusterSeries 4 жыл бұрын
Does it open the txt file if I convert the python code to exe and drag and drop the txt file into this app ? Just like when a docx file is drag & dropped into ms-word app it gets opened... btw Nice Video, I was looking for text boxes all over KZbin. :-)
@Codemycom
@Codemycom 4 жыл бұрын
No...why would it? We haven't built in any sort of functionality like that.
@noname4011
@noname4011 3 жыл бұрын
How can we delete the last phrase in text box? And I want to say that I like all your video ❤️❤️
@Codemycom
@Codemycom 3 жыл бұрын
Thanks! I have videos on the playlist that discuss that.
@tampa9
@tampa9 3 жыл бұрын
Thank you!
@Codemycom
@Codemycom 3 жыл бұрын
You're welcome!
@harshvardhansinghchauhan231
@harshvardhansinghchauhan231 4 жыл бұрын
Can you make a vedio on inbuilt validation system for entry and text widgets in tkinter
@Codemycom
@Codemycom 4 жыл бұрын
Might look at that in the future
@darshanpanchal3046
@darshanpanchal3046 4 жыл бұрын
Congratulations 🎉👏👏👏
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@mengohiz
@mengohiz 2 жыл бұрын
what do i do for root.iconbitmap
@Codemycom
@Codemycom 2 жыл бұрын
what do you mean? That's the program icon
@mengohiz
@mengohiz 2 жыл бұрын
@@Codemycom Sorry i didnt know it was the program icon as i was getting errors!
@mengohiz
@mengohiz 2 жыл бұрын
@@Codemycom and another thing is that it doesnt open sample.txt it says no such file or directory and i already created it.
@Codemycom
@Codemycom 2 жыл бұрын
@@mengohiz make sure you saved it in the right directory
@mengohiz
@mengohiz 2 жыл бұрын
@@Codemycom i saved it in the right directory but still the same erorr❔⁉
@ЙенФенФыр
@ЙенФенФыр 2 жыл бұрын
just use askopenfile() instead askopenfilename(), then you don't need additional call to standart open() function
@rlgt71234
@rlgt71234 Жыл бұрын
Why do i get this erorr?, text_file = open("sample.txt", 'r') PermissionError: [Errno 13] Permission denied: 'sample.txt'
@AviUpadhyay
@AviUpadhyay 4 жыл бұрын
Ur amazing sir... I also made a password cracking project by ur motivation.. and uploaded video on my channel.. in Hindi. I hope it will be helpful to everyone
@markberg7841
@markberg7841 4 жыл бұрын
thanks!
@Codemycom
@Codemycom 4 жыл бұрын
Welcome!
@gianboatip
@gianboatip 3 жыл бұрын
Thanks
@Codemycom
@Codemycom 3 жыл бұрын
Welcome
@EbtehajFakhri
@EbtehajFakhri 9 ай бұрын
@Codemycom
@Codemycom 9 ай бұрын
🙂
@brunorcabral
@brunorcabral 3 жыл бұрын
filedialog.asksaveasfilename(initialdir=".", title="Save a txt file", filetypes=(("Text files", "*.txt"),))
@xdcoder_xyz
@xdcoder_xyz Жыл бұрын
look at his chest , is it normal?
@Codemycom
@Codemycom Жыл бұрын
as normal as can be.
@ramipro7030
@ramipro7030 4 жыл бұрын
Thank you , it is an amazing video as alwayse.I got this an Error and i google it but i did not find any good solution !! any help plz, . the error is (TypeError: expected str, bytes or os.PathLike object, not _io.TextIOWrapper)
@darshanpanchal3046
@darshanpanchal3046 4 жыл бұрын
Why don't you use pycharm?
@Codemycom
@Codemycom 4 жыл бұрын
It sucks
@stickydamper
@stickydamper 4 жыл бұрын
This is not meth
@Codemycom
@Codemycom 4 жыл бұрын
lol
@EbtehajFakhri
@EbtehajFakhri 9 ай бұрын
Python Tutorial: File Objects - Reading and Writing to Files
24:33
Corey Schafer
Рет қаралды 1,8 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 102 М.
Intermediate Python Tutorial - Creating a Text Editor App
24:00
Tech With Tim
Рет қаралды 39 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 337 М.
Using tkinter with classes
28:23
Atlas
Рет қаралды 74 М.
Radio Buttons in CustomTkinter - Tkinter CustomTkinter 7
18:10
Tkinter․com
Рет қаралды 8 М.
Add Scrollbars to List Boxes - Python Tkinter GUI Tutorial #62
20:19
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН