@@ -31,29 +31,21 @@ def __init__(self, caller, *args, **kwargs):
3131 self .rpcLed .setToolTip ("%s" % caller .rpcStatusMess )
3232 self .rpcLed .setPixmap (caller .ledGrayH_icon )
3333 self .centralBox .addWidget (self .rpcLed , 0 , 3 )
34- self .lastPingBox = QWidget ()
34+ self .lastBlockBox = QWidget ()
3535 sp_retain = QSizePolicy ()
3636 sp_retain .setRetainSizeWhenHidden (True )
37- self .lastPingBox .setSizePolicy (sp_retain )
38- self .lastPingBox .setContentsMargins (0 , 0 , 0 , 0 )
39- lastPingBoxLayout = QHBoxLayout ()
40- self .lastPingIcon = QLabel ()
41- self .lastPingIcon .setToolTip ("Last ping server response time.\n (The lower, the better)" )
42- self .lastPingIcon .setPixmap (caller .connRed_icon )
43- lastPingBoxLayout .addWidget (self .lastPingIcon )
44- self .responseTimeLabel = QLabel ()
45- self .responseTimeLabel .setToolTip ("Last ping server response time.\n (The lower, the better)" )
46- lastPingBoxLayout .addWidget (self .responseTimeLabel )
47- lastPingBoxLayout .addSpacing (10 )
37+ self .lastBlockBox .setSizePolicy (sp_retain )
38+ self .lastBlockBox .setContentsMargins (0 , 0 , 0 , 0 )
39+ lastBlockBoxLayout = QHBoxLayout ()
4840 self .lastBlockIcon = QLabel ()
49- self .lastBlockIcon .setToolTip ("Last ping block number" )
41+ self .lastBlockIcon .setToolTip ("Last known block number" )
5042 self .lastBlockIcon .setPixmap (caller .lastBlock_icon )
51- lastPingBoxLayout .addWidget (self .lastBlockIcon )
43+ lastBlockBoxLayout .addWidget (self .lastBlockIcon )
5244 self .lastBlockLabel = QLabel ()
53- self .lastBlockLabel .setToolTip ("Last ping block number" )
54- lastPingBoxLayout .addWidget (self .lastBlockLabel )
55- self .lastPingBox .setLayout (lastPingBoxLayout )
56- self .centralBox .addWidget (self .lastPingBox , 0 , 4 )
45+ self .lastBlockLabel .setToolTip ("Last known block number / status " )
46+ lastBlockBoxLayout .addWidget (self .lastBlockLabel )
47+ self .lastBlockBox .setLayout (lastBlockBoxLayout )
48+ self .centralBox .addWidget (self .lastBlockBox , 0 , 4 )
5749 # -- 1b) Select & Check hardware
5850 label3 = QLabel ("Hardware Device" )
5951 self .centralBox .addWidget (label3 , 1 , 0 )
0 commit comments