Account widget

Now, let's create the first widget in the first tab of this tabbed window. Put the file inside the wallet_widgets directory and name it account_widget.py. You will then get the full code file from the following link: https://gitlab.com/arjunaskykok/hands-on-blockchain-for-python-developers/tree/master/chapter_09/wallet/wallet_widgets.

As mentioned previously, this widget will show up in the first tab of the wallet tabbed window. In this tab, you will acquire listing accounts and create new account functionalities.

Use the following code to import many types of widgets and classes from PySide2:

from PySide2.QtWidgets import (QWidget,                               QGridLayout,                               QVBoxLayout,                               QHBoxLayout,                               QPushButton,                               QLabel,                               QInputDialog,                               QLineEdit, QToolTip, ...

Get Hands-On Blockchain for Python Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.