In this application, the Label widget with the text Are you Sure? and the two push buttons, Yes and No, are initially hidden. These three widgets will be displayed only when the email address and password entered by the user are found in the database table. These three widgets enable the user to confirm that they really want to delete the row. So, the hide() method is invoked on these three widgets to make them initially invisible. Also, the click() event of the push button with the objectName property pushButtonDelete is connected to the DeleteUser() method. This means that whenever the Delete button is clicked, the DeleteUser() method is invoked. Similarly, the click() event of the push button with the objectName property ...
How it works…
Get Qt5 Python GUI Programming Cookbook 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.