Python Forum
Part of code is adding extra new line when saving to text file.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Part of code is adding extra new line when saving to text file.
#10
i fixed it! still not sure why its doing that, but its working now. what i did was convert the int for the clear and add miles back to a str before return, added in a \n with that string. still don't know why they act differently using the same "save" function, but it works now.
set goal is returned as a int not a str, and works fine. idk :/ also i compiled it and everything is working still, so yay!
Thank you very much for your help! I'm sure I'll have a million more questions lol
Reply


Messages In This Thread
RE: Part of code is adding extra new line when saving to text file. - by lovepeace - Aug-24-2019, 12:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] Saving file to html or pdf stopped working in PyQt6 ejKDE 4 547 Mar-12-2024, 07:45 PM
Last Post: ejKDE
  [PyQt] Adding a new file/node to QFileSystemModel DrakeSoft 1 1,069 Feb-06-2023, 01:51 PM
Last Post: deanhystad
  [PyQt] [Solved]Change text color of one line in TextBrowser Extra 2 4,938 Aug-23-2022, 09:11 PM
Last Post: Extra
  [Tkinter] logical error - saving file rwahdan 4 2,132 Jul-01-2021, 12:59 PM
Last Post: rwahdan
  Line numbers in Text widget rfresh737 3 5,454 Apr-15-2021, 12:30 PM
Last Post: rfresh737
  GUI skips code part MLGpotato 7 3,582 Feb-28-2021, 11:22 AM
Last Post: deanhystad
  [PyGTK] How to center text on multi-line buttons? Lomax 3 4,265 Jan-23-2021, 03:23 PM
Last Post: Lomax
  [gtk] How to modify a part of a text of a gtk textview cyrille 1 2,324 Nov-24-2020, 06:31 PM
Last Post: cyrille
  [PyQt] saving text file by FileDialog option atlass218 14 4,685 Feb-19-2020, 09:22 AM
Last Post: atlass218
  [Tkinter] Line Number Tkinter Text Are smabubakkar 1 4,391 Jun-22-2019, 07:05 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