Инструменты пользователя

Инструменты сайта


products:pyrog:api:lastest:types:widgets:line_edit_with_buttons

Текст документации сгенерирован автоматически из исходного кода.
Если обнаружили ошибку, отправьте об этом сообщение на 📧почту.

LineEditWithButtons

Inherits: QLineEdit

This class implements a line edit with buttons

Constructor:

def LineEditWithButtons.__init__(parent = None)

Creates LineEditWithButtons instance

Parameters:

  • parent — reference to the parent widget

Methods

addButton

def addButton(icon: QIcon, position: str = 'right') -> QToolButton

Adds button on specified position

Parameters:

  • icon: QIcon — Icon for a new button
  • position: str — button position
    • 'left' — left position
    • 'right' — right position

Returns:

  • QToolButton — button

removeButton

def removeButton(button: QToolButton)

Removes specified button

Parameters:

  • button: QToolButton — reference to button being removed

removeButtons

def removeButtons()

Removes all buttons

resizeEvent

def resizeEvent(event)

Parameters:

  • event — (without description)
products/pyrog/api/lastest/types/widgets/line_edit_with_buttons.txt · Последнее изменение: 127.0.0.1