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
6
toast.py
6
toast.py
|
@ -1,6 +1,7 @@
|
|||
import inspect
|
||||
import threading
|
||||
import time, os
|
||||
import ostools
|
||||
from PyQt4 import QtGui, QtCore
|
||||
|
||||
try:
|
||||
|
@ -173,7 +174,10 @@ class ToastMachine(object):
|
|||
|
||||
class PesterToast(QtGui.QWidget, DefaultToast):
|
||||
def __init__(self, machine, title, msg, icon, time=3000, parent=None):
|
||||
QtGui.QWidget.__init__(self, parent, (QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint))
|
||||
if ostools.isWin32():
|
||||
QtGui.QWidget.__init__(self, parent)
|
||||
else:
|
||||
QtGui.QWidget.__init__(self, parent, (QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint))
|
||||
|
||||
self.machine = machine
|
||||
self.time = time
|
||||
|
|
Loading…
Reference in a new issue