from Qt import QtCore, QtWidgets widget = QtWidgets.QWidget() widget.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)