本文整理匯總了Python中PyQt5.QtWidgets.QLineEdit.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python QLineEdit.__init__方法的具體用法?Python QLineEdit.__init__怎麽用?Python QLineEdit.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PyQt5.QtWidgets.QLineEdit
的用法示例。
在下文中一共展示了QLineEdit.__init__方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
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")
示例2: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
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()
示例3: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
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
示例4: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
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)
示例5: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
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)
示例6: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
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()
示例7: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
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)
示例8: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
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)
示例9: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
def __init__(self, parent=None):
QLineEdit.__init__(self, parent)
misc.MinimalLineEditMixin.__init__(self)
示例10: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
def __init__(self, parent=None):
QLineEdit.__init__(self, parent)
示例11: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
def __init__(self, model, parent):
QLineEdit.__init__(self, parent)
self.model = model
self.model.view = self
示例12: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
def __init__(self, text=None):
QLineEdit.__init__(self, text)
self.buttons = []
示例13: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
def __init__(self, parent=None):
QLineEdit.__init__(self, parent)
self.counter = ui_tools.LineEditCount(self)
self._mode = _STATUSBAR_STATE_SEARCH
self.installEventFilter(self)
示例14: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
def __init__(self, parent):
self.parent = parent
QLineEdit.__init__(self, parent)
self.setAlignment(Qt.AlignCenter)
示例15: __init__
# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
def __init__(self, parent=None):
QLineEdit.__init__(self, parent)
misc.MinimalLineEditMixin.__init__(self)
self.textChanged.connect(self.updateGeometry)