Temporary Bug fix: If on Windows, don't force always on top
This commit is contained in:
parent
85c01da1fd
commit
5e80c42a33
1 changed files with 5 additions and 1 deletions
4
toast.py
4
toast.py
|
@ -1,6 +1,7 @@
|
|||
import inspect
|
||||
import threading
|
||||
import time, os
|
||||
import ostools
|
||||
from PyQt4 import QtGui, QtCore
|
||||
|
||||
try:
|
||||
|
@ -173,6 +174,9 @@ class ToastMachine(object):
|
|||
|
||||
class PesterToast(QtGui.QWidget, DefaultToast):
|
||||
def __init__(self, machine, title, msg, icon, time=3000, parent=None):
|
||||
if ostools.isWin32():
|
||||
QtGui.QWidget.__init__(self, parent)
|
||||
else:
|
||||
QtGui.QWidget.__init__(self, parent, (QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint))
|
||||
|
||||
self.machine = machine
|
||||
|
|
Loading…
Reference in a new issue