Ejemplo n.º 1
0
 def __init__(self, parent):
     QLineEdit.__init__(self, parent)
     self.setFixedWidth(100)
     self.setFixedHeight(24)
     self.setContentsMargins(5, 0, 5, 0)
     self.setStyleSheet('''
     LineEdit { background-color : white;}
     ''')
Ejemplo n.º 2
0
    def __init__(self, parent=None):
        QLineEdit.__init__(self, parent)
        self.clearOnFocus = False
        self.originalPalette = self.palette()
        self.newPalette = QPalette(self.palette())  # copy constructor

        self.newPalette.setColor(QPalette.Normal, QPalette.Base,
                                 QColor(200, 255, 125))
Ejemplo n.º 3
0
 def __init__(self, parent=None):
     QLineEdit.__init__(self, parent)
     self.fsmodel = QFileSystemModel()
     self.fsmodel.setRootPath("")
     self.completer = QCompleter()
     self.completer.setModel(self.fsmodel)
     self.setCompleter(self.completer)
     self.fsmodel.setFilter(QDir.Drives | QDir.AllDirs | QDir.Hidden | QDir.NoDotAndDotDot)
Ejemplo n.º 4
0
 def __init__(self):
     QLineEdit.__init__(self)
     self.returnPressed.connect(self.handleReturn)
     self.setStyleSheet('''
         QLineEdit {
             background-color: #2a2a2a;
             color: #cccccc;
         }; ''')
     return
 def __init__(self, *args, **kwargs):
     QLineEdit.__init__(self, *args, **kwargs)
     self._labelX = int()
     self._labelY = int()
     self._labelTextWidth = int()
     self._labelColor = QColor()
     self._labelFocusColor = QColor()
     self._label = str()
     self.setAttribute(Qt.WA_StyledBackground)
Ejemplo n.º 6
0
    def __init__(self, params):
        IWB.__init__(self, params)
        QLineEdit.__init__(self)

        self.setStyleSheet('''
            QLineEdit{
                border-radius: 10px;
                background-color: transparent;
                border: 1px solid #404040;
                color: #aaaaaa;
                padding: 3px;
            }
        ''')

        self.setFont(QFont('Corbel', 10))
        self.setEchoMode(QLineEdit.Password)
    def __init__(self, params):
        IWB.__init__(self, params)
        QLineEdit.__init__(self)

        c = self.parent_node_instance.color.name()
        self.setStyleSheet('''
QLineEdit{
    color: ''' + c + ''';
    background: transparent;
    border: 1px solid ''' + c + ''';
    border-radius: 4px;
}
        ''')
        self.base_width = 50
        self.setFixedWidth(self.base_width)
        self.textChanged.connect(M(self.text_changed))
        self.setFont(QFont('source code pro'))
Ejemplo n.º 8
0
    def __init__(self, params):
        IWB.__init__(self, params)
        QLineEdit.__init__(self)

        self.setStyleSheet('''
            QLineEdit{
                border-radius: 10px;
                background-color: transparent;
                border: 1px solid #404040;
                color: #aaaaaa;
                padding: 3px;
            }
        ''')

        self.setFont(QFont('Corbel', 10))

        self.textChanged.connect(M(self.email_text_changed))
Ejemplo n.º 9
0
 def __init__(self, target_property_name):
     QLineEdit.__init__(self)
     PropertyWidget.__init__(self, target_property_name)
     self.editingFinished.connect(self._on_edit)
 def __init__(self, parent):
     QLineEdit.__init__(self, parent)
 def __init__(self, target_property_name, length):
     QLineEdit.__init__(self)
     PropertyWidget.__init__(self, target_property_name)
     self.editingFinished.connect(self._on_edit)
     self.setInputMask(self._create_input_mask(length))
Ejemplo n.º 12
0
 def __init__(self, parent: QWidget):
     QLineEdit.__init__(self, parent)
     self.completer = None
Ejemplo n.º 13
0
 def __init__(self, parent=None):
     QLineEdit.__init__(self, parent)
     self.p_value = 0.0
     self.setFixedWidth(self.fontMetrics().width("  8,888,888,888.88"))
     self.setValidator(QDoubleValidator(decimals=8))
Ejemplo n.º 14
0
 def __init__(self, name, parent_object):
     QLineEdit.__init__(self, name)
     self.parent_object = parent_object
Ejemplo n.º 15
0
 def __init__(self, tool, param, allow_real_time: bool = True, parent=None):
     QLineEdit.__init__(self, parent)
     QParamHandler.__init__(self, tool, param, allow_real_time)