Python Forum
Saving entered text for next usement
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving entered text for next usement
#1
Hello,
I'm working with Python(x,y) and Qt Desinger 4. I got a browse button where I can seach for a file, after I selected the file it's loaded in a QLineEdit where my programm gets the path and works with it. Now I want that, if I close the application and reopen it, that the QLineEdit still got the text from before. Is there a way to do that?
Grettings
Matthias
Reply
#2
you need to store that info somewhere, e.g. database, text file (plain file, config file, whatever), etc. and then read it back when start the program
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Saving the print result in a text file Calli 8 1,824 Sep-25-2022, 06:38 PM
Last Post: snippsat
  saving and loading text from the clipboard with python program MaartenRo 2 1,668 Jan-22-2022, 05:04 AM
Last Post: MaartenRo
  Try,Except,Else to check that user has entered either y or n (Code block pasted) RandomNameGenerator 3 2,346 Jun-29-2021, 08:21 PM
Last Post: RandomNameGenerator
  Saving text file with a click: valueerror i/o operation on closed file vizier87 5 4,432 Nov-16-2020, 07:56 AM
Last Post: Gribouillis
  saving data from text file to CSV file in python having delimiter as space K11 1 2,418 Sep-11-2020, 06:28 AM
Last Post: bowlofred
  Please help me to ask to enter again itself when value entered is not a number. sunil422 5 2,634 Aug-13-2020, 02:15 PM
Last Post: perfringo
  How to reuse positional arguments entered in terminal. rcmanu95 1 1,880 Jul-04-2020, 01:00 AM
Last Post: bowlofred
  how to divide one big equation entered as a string to small chunks gungurbuz 1 1,630 May-28-2020, 03:46 PM
Last Post: Larz60+
  How to check if user entered string or integer or float?? prateek3 5 11,376 Dec-21-2019, 06:24 PM
Last Post: DreamingInsanity
  I want to check for the smallest value entered by the user Shilpa 2 1,822 Aug-13-2019, 12:06 PM
Last Post: ThomasL

Forum Jump:

User Panel Messages

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