How it works…
You can see in the script that the click() event of the push button with the objectName property pushButtonSearch is connected to the SearchRows() method. This means that, whenever the push button is clicked, the SearchRows() method is invoked. In the SearchRows() method, the connect() method is invoked on the sqlite3 class and the database name entered by the user in the Line Edit widget is passed to the connect() method. The connection to the database is established. An SQL search statement is defined that fetches the Password column from the table supplied whose email address matches the email address supplied. The search SQL statement is executed on the given database table. The fetchone() method is executed on the cursor ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access