mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
use py3 super
This commit is contained in:
parent
afb0b082fd
commit
abcb4fe3e4
1 changed files with 4 additions and 6 deletions
|
|
@ -41,7 +41,7 @@ class ScrollMessageBox(QtWidgets.QDialog):
|
|||
|
||||
"""
|
||||
def __init__(self, icon, title, messages, cancelable=False):
|
||||
super(ScrollMessageBox, self).__init__()
|
||||
super().__init__()
|
||||
self.setWindowTitle(title)
|
||||
self.icon = icon
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ class SimplePopup(QtWidgets.QDialog):
|
|||
on_clicked = QtCore.Signal()
|
||||
|
||||
def __init__(self, parent=None, *args, **kwargs):
|
||||
super(SimplePopup, self).__init__(parent=parent, *args, **kwargs)
|
||||
super().__init__(parent=parent, *args, **kwargs)
|
||||
|
||||
# Set default title
|
||||
self.setWindowTitle("Popup")
|
||||
|
|
@ -155,7 +155,7 @@ class SimplePopup(QtWidgets.QDialog):
|
|||
geo = self._calculate_window_geometry()
|
||||
self.setGeometry(geo)
|
||||
|
||||
return super(SimplePopup, self).showEvent(event)
|
||||
return super().showEvent(event)
|
||||
|
||||
def _on_clicked(self):
|
||||
"""Callback for when the 'show' button is clicked.
|
||||
|
|
@ -222,9 +222,7 @@ class PopupUpdateKeys(SimplePopup):
|
|||
on_clicked_state = QtCore.Signal(bool)
|
||||
|
||||
def __init__(self, parent=None, *args, **kwargs):
|
||||
super(PopupUpdateKeys, self).__init__(
|
||||
parent=parent, *args, **kwargs
|
||||
)
|
||||
super().__init__(parent=parent, *args, **kwargs)
|
||||
|
||||
layout = self.layout()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue