In this output, dummy text is written in text area. Now when user clicked on the save button a file explorer is prompted. User can navigate to to location where he want to save it after that click on save button. The file is saved on the system and can be opened by clicking on the open button. Entrepreneur, Founder, Author, Blogger, Trainer, and more. Check out my profile. Python Tkinter Open Text File. Python Tkinter Read Text File.
Python Tkinter Display Text File. Python Tkinter Save to Text File. Python Tkinter Write Text File. Python Tkinter Edit Text File. Python Tkinter Create Text File. Improve Article. Save Article. Like Article. Python program to create. Change label contents. Grid method is chosen for placing. Let the window wait for any events. Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
Previous Python askopenfile function in Tkinter. Next Python GUI - tkinter. Active 1 year, 4 months ago. Viewed 57k times. Simson 2, 2 2 gold badges 20 20 silver badges 32 32 bronze badges. Serial Serial 7, 13 13 gold badges 47 47 silver badges 67 67 bronze badges. This code works, you just need to return f.
Add a comment. Active Oldest Votes. Jan Bodnar 9, 5 5 gold badges 58 58 silver badges 67 67 bronze badges. Bharat Bharat 2, 2 2 gold badges 34 34 silver badges 57 57 bronze badges. Tk root. PranavKarthik PranavKarthik 51 2 2 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
0コメント