Example #1
0
 def __init__(self, parent=None):
     super(LockTimeWidget, self).__init__(parent)
     self.locktime_raw = QLineEdit()
     self.locktime_human = QLineEdit()
     for i in [self.locktime_raw, self.locktime_human]:
         i.setReadOnly(True)
     hbox = HBox(self.locktime_raw, self.locktime_human)
     hbox.setContentsMargins(0, 0, 0, 0)
     self.setLayout(hbox)
Example #2
0
 def __init__(self, parent=None):
     super(LockTimeWidget, self).__init__(parent)
     self.locktime_raw = QLineEdit()
     self.locktime_human = QLineEdit()
     for i in [self.locktime_raw, self.locktime_human]:
         i.setReadOnly(True)
     hbox = HBox(self.locktime_raw, self.locktime_human)
     hbox.setContentsMargins(0, 6, 0, 0)
     self.setLayout(hbox)
Example #3
0
 def __init__(self, parent=None):
     super(TimestampWidget, self).__init__(parent)
     self.timestamp_raw = QLineEdit()
     self.timestamp_human = QLineEdit()
     for i in [self.timestamp_raw, self.timestamp_human]:
         i.setReadOnly(True)
     hbox = HBox(self.timestamp_raw, self.timestamp_human)
     hbox.setContentsMargins(0, 0, 0, 0)
     self.setLayout(hbox)
     self.timestamp_raw.textChanged.connect(self.update_time)
Example #4
0
 def __init__(self, parent=None):
     super(TimestampWidget, self).__init__(parent)
     self.timestamp_raw = QLineEdit()
     self.timestamp_human = QLineEdit()
     for i in [self.timestamp_raw, self.timestamp_human]:
         i.setReadOnly(True)
     hbox = HBox(self.timestamp_raw, self.timestamp_human)
     hbox.setContentsMargins(0, 0, 0, 0)
     self.setLayout(hbox)
     self.timestamp_raw.textChanged.connect(self.update_time)
Example #5
0
    def __init__(self, parent=None):
        super(TxProperties, self).__init__(parent)
        self.tx_size_edit = QLineEdit()
        self.tx_size_edit.setReadOnly(True)
        tx_size = HBox(QLabel('Size:'), self.tx_size_edit)
        tx_size.setContentsMargins(0, 0, 0, 0)
        self.tx_size = QWidget()
        self.tx_size.setLayout(tx_size)
        self.tx_size.setToolTip('Size (in bytes) of the serialized tx')

        self.is_final = QCheckBox('Is Final')
        self.is_final.setToolTip('True if all inputs have a Sequence of 0xffffffff')
        self.is_coinbase = QCheckBox('Is Coinbase')
        self.is_coinbase.setToolTip('True if the tx generates new coins via mining')
        for i in [self.is_final, self.is_coinbase]:
            i.setEnabled(False)
        hbox = floated_buttons([self.tx_size, self.is_final, self.is_coinbase], left=True)
        hbox.setContentsMargins(16, 0, 0, 0)
        self.setLayout(hbox)
Example #6
0
    def __init__(self, parent=None):
        super(TxProperties, self).__init__(parent)
        self.tx_size_edit = QLineEdit()
        self.tx_size_edit.setReadOnly(True)
        tx_size = HBox(QLabel('Size:'), self.tx_size_edit)
        tx_size.setContentsMargins(0, 0, 0, 0)
        self.tx_size = QWidget()
        self.tx_size.setLayout(tx_size)
        self.tx_size.setToolTip('Size (in bytes) of the serialized tx')

        self.is_final = QCheckBox('Is Final')
        self.is_final.setToolTip(
            'True if all inputs have a Sequence of 0xffffffff')
        self.is_coinbase = QCheckBox('Is Coinbase')
        self.is_coinbase.setToolTip(
            'True if the tx generates new coins via mining')
        for i in [self.is_final, self.is_coinbase]:
            i.setEnabled(False)
        hbox = floated_buttons([self.tx_size, self.is_final, self.is_coinbase],
                               left=True)
        hbox.setContentsMargins(16, 0, 0, 0)
        self.setLayout(hbox)