Python Forum
Entry in textdocument
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Entry in textdocument
#2
I do not do TKinter but if I had to venture a guess it is one of two things or both:

You open the file with open("animals.txt", "w") aka overwrite mode (I believe) try open("animals.txt", "a") or append mode

The .write() might overwrite as such what you need would be .append()

Note you will have to check the syntax of those two suggestions as again I do not do TKinter but it ought to have something like that.
Reply


Messages In This Thread
Entry in textdocument - by Piethon - Sep-10-2019, 02:36 PM
RE: Entry in textdocument - by Denni - Sep-10-2019, 03:53 PM
RE: Entry in textdocument - by Piethon - Sep-10-2019, 04:23 PM
RE: Entry in textdocument - by Denni - Sep-10-2019, 08:56 PM
RE: Entry in textdocument - by Axel_Erfurt - Sep-10-2019, 10:42 PM
RE: Entry in textdocument - by Piethon - Sep-11-2019, 05:46 PM
RE: Entry in textdocument - by jefsummers - Sep-11-2019, 06:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Transfer Toplevel window entry to root window entry with TKinter HBH 0 4,483 Jan-23-2020, 09:00 PM
Last Post: HBH
  [Tkinter] how to get the entry information using Entry.get() ? SamyPyth 2 3,512 Mar-18-2019, 05:36 PM
Last Post: woooee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020