Temporary Bug fix: If on Windows, don't force always on top

This commit is contained in:
Kiooeht 2011-08-29 02:13:49 -07:00
parent 85c01da1fd
commit 5e80c42a33

View file

@ -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