How it works…

You can see in the script that the click() event of the push button with the objectName property pushButtonFirst is connected to the ShowFirstRow() method, the push button with the objectName property pushButtonPrevious is connected to the ShowPreviousRow() method, the push button with the objectName property pushButtonNext is connected to the ShowNextRow() method, and the push button with the objectName property pushButtonLast is connected to the ShowLastRow() method. 

Whenever a push button is clicked, the associated method will be invoked.

In the ShowFirstRow() method, an SQL SELECT statement is executed that fetches the email address and password columns of the Users table. The fetchone() method is executed on the cursor ...

Get Python GUI Programming - A Complete Reference Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.