xpra icon
Bug tracker and wiki

Ticket #1916: stayontop.py

File stayontop.py, 276 bytes (added by Antoine Martin, 21 months ago)

pyqt4 example that requests stay-on-top

Line 
1import sys
2from PyQt4 import QtGui, QtCore
3
4class mymainwindow(QtGui.QMainWindow):
5    def __init__(self):
6        QtGui.QMainWindow.__init__(self, None, QtCore.Qt.WindowStaysOnTopHint)
7
8app = QtGui.QApplication(sys.argv)
9mywindow = mymainwindow()
10mywindow.show()
11app.exec_()