Toasts, deal with top or bottom taskbar
This commit is contained in:
parent
d9a742d90c
commit
a3d15b5eaa
1 changed files with 3 additions and 1 deletions
4
toast.py
4
toast.py
|
@ -232,7 +232,9 @@ class PesterToast(QtGui.QWidget, DefaultToast):
|
|||
|
||||
self.msg.setText(PesterToast.wrapText(self.msg.font(), str(self.msg.text()), self.parent().theme["toasts/width"], self.parent().theme["toasts/content/style"]))
|
||||
|
||||
anim.setStartValue(0)
|
||||
p = QtGui.QApplication.desktop().availableGeometry(self).bottomRight()
|
||||
o = QtGui.QApplication.desktop().screenGeometry(self).bottomRight()
|
||||
anim.setStartValue(p.y() - o.y())
|
||||
anim.setEndValue(100)
|
||||
self.connect(anim, QtCore.SIGNAL('valueChanged(QVariant)'),
|
||||
self, QtCore.SLOT('updateBottomLeftAnimation(QVariant)'))
|
||||
|
|
Loading…
Reference in a new issue