Skip to content
Snippets Groups Projects
Commit ee967ed7 authored by inso's avatar inso
Browse files

Network tab

parent 41980ff2
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ from ..gen_resources.currency_tab_uic import Ui_CurrencyTabWidget ...@@ -18,6 +18,7 @@ from ..gen_resources.currency_tab_uic import Ui_CurrencyTabWidget
from .community_tab import CommunityTabWidget from .community_tab import CommunityTabWidget
from .transfer import TransferMoneyDialog from .transfer import TransferMoneyDialog
from .wallets_tab import WalletsTabWidget from .wallets_tab import WalletsTabWidget
from .network_tab import NetworkTabWidget
from ..models.txhistory import HistoryTableModel, TxFilterProxyModel from ..models.txhistory import HistoryTableModel, TxFilterProxyModel
from .informations_tab import InformationsTabWidget from .informations_tab import InformationsTabWidget
from ..tools.exceptions import NoPeerAvailable, MembershipNotFoundError from ..tools.exceptions import NoPeerAvailable, MembershipNotFoundError
...@@ -83,6 +84,9 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget): ...@@ -83,6 +84,9 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget):
self.tab_wallets = WalletsTabWidget(self.app, self.tab_wallets = WalletsTabWidget(self.app,
self.app.current_account, self.app.current_account,
self.community) self.community)
self.tab_network = NetworkTabWidget(self.community)
self.bc_watcher = BlockchainWatcher(self.app.current_account, self.bc_watcher = BlockchainWatcher(self.app.current_account,
community) community)
self.bc_watcher.new_block_mined.connect(self.refresh_block) self.bc_watcher.new_block_mined.connect(self.refresh_block)
...@@ -166,6 +170,9 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget): ...@@ -166,6 +170,9 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget):
self.tabs_account.addTab(self.tab_informations, self.tabs_account.addTab(self.tab_informations,
QIcon(':/icons/informations_icon'), QIcon(':/icons/informations_icon'),
"Informations") "Informations")
self.tab_network = NetworkTabWidget(self.community)
self.tabs_account.addTab(self.tab_network, "Network")
self.tab_informations.refresh() self.tab_informations.refresh()
blockid = self.community.current_blockid() blockid = self.community.current_blockid()
block_number = blockid['number'] block_number = blockid['number']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment