當前位置: 首頁>>代碼示例>>Python>>正文


Python QLineEdit.__init__方法代碼示例

本文整理匯總了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")
開發者ID:Subaru-PFS,項目名稱:ics_sps_engineering_monitorData,代碼行數:9,代碼來源:devicegb.py

示例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()
開發者ID:wxgeo,項目名稱:geophar,代碼行數:9,代碼來源:proprietes_objets.py

示例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
開發者ID:olivierkes,項目名稱:manuskript,代碼行數:9,代碼來源:lineEditView.py

示例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)
開發者ID:dasimon,項目名稱:weboob,代碼行數:9,代碼來源:qt.py

示例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)
開發者ID:bjones1,項目名稱:enki,代碼行數:11,代碼來源:locator.py

示例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()
開發者ID:bygage,項目名稱:electrum,代碼行數:11,代碼來源:amountedit.py

示例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)
開發者ID:Subaru-PFS,項目名稱:ics_sps_engineering_plotData,代碼行數:13,代碼來源:tabwidget.py

示例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)
開發者ID:gpa14,項目名稱:enki,代碼行數:21,代碼來源:lineedit.py

示例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)
開發者ID:larryhynes,項目名稱:qutebrowser,代碼行數:5,代碼來源:prompt.py

示例10: __init__

# 需要導入模塊: from PyQt5.QtWidgets import QLineEdit [as 別名]
# 或者: from PyQt5.QtWidgets.QLineEdit import __init__ [as 別名]
 def __init__(self, parent=None):
     QLineEdit.__init__(self, parent)
開發者ID:sheerluck,項目名稱:andrew,代碼行數:4,代碼來源:offline-twitter.py

示例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
開發者ID:patrickatamaniuk,項目名稱:moneyguru,代碼行數:6,代碼來源:completable_edit.py

示例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 = []
開發者ID:faircoin,項目名稱:electrumfair,代碼行數:5,代碼來源:util.py

示例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)
開發者ID:ninja-ide,項目名稱:ninja-ide,代碼行數:7,代碼來源:status_bar.py

示例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)
開發者ID:wxgeo,項目名稱:geophar,代碼行數:6,代碼來源:__init__.py

示例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)
開發者ID:JIVS,項目名稱:qutebrowser,代碼行數:6,代碼來源:prompt.py


注:本文中的PyQt5.QtWidgets.QLineEdit.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。