mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -05:00
Use super() without arguments
This commit is contained in:
parent
2539896b22
commit
ddc4c6a7e3
1 changed files with 3 additions and 3 deletions
|
|
@ -1848,7 +1848,7 @@ class FavouritesLineEdit(QLineEdit):
|
|||
buttonClicked = pyqtSignal(bool)
|
||||
|
||||
def __init__(self, mw, browser, parent=None):
|
||||
super(FavouritesLineEdit, self).__init__(parent)
|
||||
super().__init__(parent)
|
||||
self.mw = mw
|
||||
self.browser = browser
|
||||
# add conf if missing
|
||||
|
|
@ -1872,13 +1872,13 @@ class FavouritesLineEdit(QLineEdit):
|
|||
self.button.move(self.rect().right() - frameWidth - buttonSize.width(),
|
||||
(self.rect().bottom() - buttonSize.height() + 1) / 2)
|
||||
self.setTextMargins(0, 0, buttonSize.width() * 1.5, 0)
|
||||
super(FavouritesLineEdit, self).resizeEvent(event)
|
||||
super().resizeEvent(event)
|
||||
|
||||
def setIcon(self, path):
|
||||
self.button.setIcon(QIcon(path))
|
||||
|
||||
def setText(self, txt):
|
||||
super(FavouritesLineEdit, self).setText(txt)
|
||||
super().setText(txt)
|
||||
self.updateButton()
|
||||
|
||||
def updateButton(self, reset=True):
|
||||
|
|
|
|||
Loading…
Reference in a new issue