def __init__(self, parent=None): QLineEdit.__init__(self, parent) self._column = Outline.title self._indexes = None self._index = None self._placeholderText = None self._updating = False
def __init__(self, value): QLineEdit.__init__(self) self._value = value if value.default: self.setText(unicode(value.default)) if value.masked: self.setEchoMode(self.Password)
def __init__(self, parent, attribut, editable=False): QLineEdit.__init__(self, parent) self.setMinimumWidth(300) self.parent = parent self.attribut = attribut self.setReadOnly(not editable) self.actualiser()
def __init__(self, fmt, lbound, ubound, GvState): QLineEdit.__init__(self, "") self.fmt = fmt self.lbound = lbound self.ubound = ubound self.GvState = GvState self.colorLabel("white")
def __init__(self, *args): QLineEdit.__init__(self, *args) self._inlineCompletionIsSet = False # to differentiate inline completion and selection # Timer is used to delay completion update until user has finished typing self._updateCurrentCommandTimer = QTimer(self) self._updateCurrentCommandTimer.setInterval(100) self._updateCurrentCommandTimer.setSingleShot(True) self._updateCurrentCommandTimer.timeout.connect(self.updateCurrentCommand)
def __init__(self, base_unit, is_int = False, parent=None): QLineEdit.__init__(self, parent) # This seems sufficient for hundred-UBTC amounts with 8 decimals self.setFixedWidth(140) self.base_unit = base_unit self.textChanged.connect(self.numbify) self.is_int = is_int self.is_shortcut = False self.help_palette = QPalette()
def __init__(self, tabBar, index): QLineEdit.__init__(self, tabBar.tabText(index)) self.setParent(tabBar) rect = tabBar.tabRect(index) self.move(rect.x(), rect.y()) self.tabBar = tabBar self.index = index self.editingFinished.connect(self.editTitle)
def __init__(self, parent): QLineEdit.__init__(self, parent) self._margin = self.sizeHint().height() - 2 self._spacing = 0 self._promptText = "" self._tbClear = QToolButton(self) self._tbClear.setIcon(QIcon(":enkiicons/edit-clear-rtl.png")) self._tbClear.setToolTip(tr("Clear")) self._tbClear.setStyleSheet("QToolButton { border: none; padding: 0px; }") self._tbClear.setCursor(Qt.ArrowCursor) self._tbClear.setFocusPolicy(Qt.NoFocus) self.setClearButtonVisible(False) self.textChanged.connect(self._onTextChanged) self._tbClear.clicked.connect(self.clear) self._tbClear.clicked.connect(self.clearButtonClicked)
def __init__(self, parent=None): QLineEdit.__init__(self, parent) misc.MinimalLineEditMixin.__init__(self)
def __init__(self, model, parent): QLineEdit.__init__(self, parent) self.model = model self.model.view = self
def __init__(self, text=None): QLineEdit.__init__(self, text) self.buttons = []
def __init__(self, parent=None): QLineEdit.__init__(self, parent) self.counter = ui_tools.LineEditCount(self) self._mode = _STATUSBAR_STATE_SEARCH self.installEventFilter(self)
def __init__(self, text=None): QLineEdit.__init__(self, text) self.heightMin = 32 self.buttons = [] self.setMinimumHeight(self.heightMin)
def __init__(self, parent=None): QLineEdit.__init__(self, parent) misc.MinimalLineEditMixin.__init__(self) self.textChanged.connect(self.updateGeometry)
def __init__(self, parent): QLineEdit.__init__(self, parent) font = self.font() font.setPointSize(9) self.setFont(font)
def __init__(self, callback, parent=None): QLineEdit.__init__(self, parent) self.callback = callback self.setFrame(False) self.setTextMargins(0, 0, 0, 0)
def __init__(self, label=None): QLineEdit.__init__(self) if label is None: label = "" self.setText(label)
def __init__(self, parentWidget): QLineEdit.__init__(self, parentWidget)
def __init__(self, default_value, change_connector, max_width=50): QLineEdit.__init__(self) self.setStyleSheet("border: 1px solid rgba(0,0,0,30%);") self.setText(default_value) self.setMaximumWidth(max_width) self.textChanged.connect(change_connector)
def __init__(self, parent=None): QLineEdit.__init__(self, parent)
def __init__(self, completer, type=QCompleter.PopupCompletion): QLineEdit.__init__(self) self.completer = completer self.setTextMargins(0, 0, 5, 0) self.completionType = type self.completer.setCompletionMode(self.completionType)
def __init__(self): QLineEdit.__init__(self)
def __init__(self, parent): QLineEdit.__init__(self) self.parent = parent
def __init__(self, text=''): QLineEdit.__init__(self, text, None) self.buttons = []
def __init__(self, length, parent=None): QLineEdit.__init__(self, parent) self.textChanged.connect(self.validate) self.help_palette = QPalette() self.length = length
def __init__(self, parent): QLineEdit.__init__(self, parent) self.textChanged.connect(self._handleTextChanged) self.returnPressed.connect(self._handleReturnPressed) self.setSizePolicy(QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred))
def __init__(self, parent): self.parent = parent QLineEdit.__init__(self, parent) self.setAlignment(Qt.AlignCenter)
def __init__(self, base_unit, parent=None): QLineEdit.__init__(self, parent) self.setFixedWidth(140) self.base_unit = base_unit self.textChanged.connect(self.numbify) self.help_palette = QPalette()
def __init__(self): QLineEdit.__init__() self.setReadOnly(True) self.setAlignment(Qt.AlignLeft) self.setMaxLength(52) self.setText("messageView")
def __init__(self, max_length=100): QLineEdit.__init__(self) mask = '9' * max_length self.setInputMask(mask)
def __init__(self, *args, **kwargs): QLineEdit.__init__(self, *args, **kwargs) self.setStyleSheet("QLineEdit { font: 8pt;}")
def __init__(self, parent=None): QLineEdit.__init__(self, parent) self.setFixedWidth(14 * char_width_in_lineedit()) self.textChanged.connect(self.numbify)
def __init__(self, *args, **kwargs): QLineEdit.__init__(self, *args, **kwargs) self.setEchoMode(QLineEdit.Password)
def __init__(self, apply_filter): QLineEdit.__init__(self) self.setToolTip(_('Filter')) self.setPlaceholderText(_('Search manga...')) self.textChanged.connect(apply_filter)
def __init__(self, text=''): QLineEdit.__init__(self, text, None) self.buttons: Iterable[QAbstractButton] = []
def __init__(self, *args): QLineEdit.__init__(self, *args)