Python Forum
PyQt5: How do you set the user input of a line edit to a specific variable?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyQt5: How do you set the user input of a line edit to a specific variable?
#16
(Dec-23-2019, 10:33 PM)Denni Wrote:
buran Wrote:do you want me to revert your edits to your original post? currently your post in question is edited 4 times.
Yep @buran I made that 2nd change and then I made that 4th change but I believe I made the note that I made an edit after that 4th change when I saw you had replied while I was making my edits. Of course all of those edits were done I think fairly quickly in succession so the timing of it all might be slightly off. Still I do not see your point? As you quoted my 4th change in your reply to my edit while leaving out the reference to the 2nd change. So you purposefully chose to pull something out of context and misrepresent what I said. Nice and no apology to go with it, typical.

@YoshikageKira as for saving that information once you have gotten it into a variable state you can save that virtually anywhere you want to however, a database is typically used in this case and python incorporates sqlite3 which is a very easy and free database engine to use however when doing this you are going to want to use MVC methodology and if you do not know about MVC you should read up on that. Regardless if you want to learn this kind of stuff interactively you can join my free python-pyqt classroom or I can continue helping you here -- just post another question on this once you have looked into MVC and using sqlite3 with python --- note do not look into PyQt inter-activeness with a database as that is not MVC and frankly straight python works better for a database interface

Still if you did not want to go the route of a database MVC is still a methodology you want to investigate and then you could save into a text file or Jason object within a text file

What a coincidence because I just so happen to be experimenting with sqlite3 and I am attempting to use it with my project. It would be perfect to learn the MVC to use with my project because I am attempting to have a program that allows you log information (integer related such as Volunteer hours) into a database and calculate certain information etc. Tho I do perfer to be helped here, I would love to know the code to doing would be. I could a send a massive snipet of the code that Im trying to incorporate the method into.
Reply


Messages In This Thread
RE: PyQt5: How do you set the user input of a line edit to a specific variable? - by YoshikageKira - Dec-23-2019, 10:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] PyQt5 QTableView SQLite : edit cell HeinKurz 2 2,619 Mar-27-2023, 10:41 AM
Last Post: HeinKurz
  [PyGUI] [Solved]Help storing in user input from line edit Extra 2 1,882 May-12-2022, 07:46 PM
Last Post: Extra
  [Tkinter] Help with input from specific devices Noob_hobbyist 3 2,508 Feb-02-2021, 04:11 AM
Last Post: deanhystad
  Convert combobox user input in to date with tkinter Ame 8 6,974 Jul-01-2020, 09:40 PM
Last Post: Yoriz
  Create an identification code from user input PeroPuri 1 1,961 Apr-11-2020, 11:56 AM
Last Post: Larz60+
  [PyQt] Python PyQt5 - Change label text dynamically based on user Input ppel123 1 13,930 Mar-20-2020, 07:21 AM
Last Post: deanhystad
  [Tkinter] Is there a way to sleep without stopping user input? GalaxyCoyote 2 2,211 Oct-23-2019, 06:23 PM
Last Post: Denni
  [Tkinter] Registering user's drop down menu choice and finding corresponding line in files ShadeLily 2 2,106 Oct-03-2019, 06:28 PM
Last Post: joe_momma
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,928 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  [Tkinter] help please, checking the user input and outputting the result tomkovladko 3 2,832 Mar-05-2019, 08:58 PM
Last Post: joe_momma

Forum Jump:

User Panel Messages

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