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?
#17
(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

Do you know where I can find your python pyqt class? I would love to learn how to incorporate the sqlite3 database into my program
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-24-2019, 08:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] PyQt5 QTableView SQLite : edit cell HeinKurz 2 2,559 Mar-27-2023, 10:41 AM
Last Post: HeinKurz
  [PyGUI] [Solved]Help storing in user input from line edit Extra 2 1,840 May-12-2022, 07:46 PM
Last Post: Extra
  [Tkinter] Help with input from specific devices Noob_hobbyist 3 2,469 Feb-02-2021, 04:11 AM
Last Post: deanhystad
  Convert combobox user input in to date with tkinter Ame 8 6,937 Jul-01-2020, 09:40 PM
Last Post: Yoriz
  Create an identification code from user input PeroPuri 1 1,946 Apr-11-2020, 11:56 AM
Last Post: Larz60+
  [PyQt] Python PyQt5 - Change label text dynamically based on user Input ppel123 1 13,879 Mar-20-2020, 07:21 AM
Last Post: deanhystad
  [Tkinter] Is there a way to sleep without stopping user input? GalaxyCoyote 2 2,194 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,083 Oct-03-2019, 06:28 PM
Last Post: joe_momma
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,896 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  [Tkinter] help please, checking the user input and outputting the result tomkovladko 3 2,813 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