Skip to Content
Hands-On Blockchain for Python Developers
book

Hands-On Blockchain for Python Developers

by Arjuna Sky Kok
February 2019
Intermediate to advanced
450 pages
9h 59m
English
Packt Publishing
Content preview from Hands-On Blockchain for Python Developers

Building widgets

Let's create our main application using the following code block. This is the main entry for our cryptocurrency wallet. Name it wallet.py:

from PySide2.QtWidgets import QTabWidget, QApplicationimport sysfrom wallet_widgets.account_widget import AccountWidgetfrom wallet_widgets.send_widget import SendWidgetfrom wallet_widgets.token_widget import TokenWidgetclass WalletWidget(QTabWidget):    def __init__(self, parent=None):        super(WalletWidget, self).__init__(parent)        self.account_widget = AccountWidget()        self.send_widget = SendWidget()        self.token_widget = TokenWidget()        self.addTab(self.account_widget, "Account")        self.addTab(self.send_widget, "Send")        self.addTab(self.token_widget, "Token")    def killThreads(self): self.account_widget.kill() ...
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.
Start your free trial

You might also like

Blockchain in Action

Blockchain in Action

Bina Ramamurthy
Learn Python by Building a Blockchain and Cryptocurrency

Learn Python by Building a Blockchain and Cryptocurrency

Academind by Maximilian Schwarzmüller GmbH

Publisher Resources

ISBN: 9781788627856Supplemental Content