xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #1916: stayontop.py

File stayontop.py, 276 bytes (added by Antoine Martin, 3 years 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_()