Use dict literal instead of call to dict() in toasts.py
This commit is contained in:
parent
06a71899dd
commit
b644055dc0
1 changed files with 7 additions and 1 deletions
8
toast.py
8
toast.py
|
@ -232,7 +232,13 @@ class ToastMachine:
|
|||
class PesterToast(QtWidgets.QWidget, DefaultToast):
|
||||
def __init__(self, machine, title, msg, icon, time=3000, parent=None):
|
||||
# FIXME: Not sure how this works exactly either xd, can't we init the parents seperately?
|
||||
kwds = dict(parent=parent, machine=machine, title=title, msg=msg, icon=icon)
|
||||
kwds = {
|
||||
"parent": parent,
|
||||
"machine": machine,
|
||||
"title": title,
|
||||
"msg": msg,
|
||||
"icon": icon,
|
||||
}
|
||||
super().__init__(**kwds)
|
||||
|
||||
self.machine = machine
|
||||
|
|
Loading…
Reference in a new issue