Created
December 2, 2015 15:32
-
-
Save brickgao/9b2ab9138777c6efa49c to your computer and use it in GitHub Desktop.
An empty window to cover the subtitle.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
import sys | |
from PyQt4 import QtGui, QtCore | |
class CoverSubtitle(QtGui.QMainWindow): | |
"""Use me to cover the subtitle. | |
""" | |
def __init__(self): | |
super(CoverSubtitle, self).__init__( | |
None, QtCore.Qt.WindowStaysOnTopHint | |
) | |
self.setGeometry(300, 300, 1200, 100) | |
self.setWindowTitle(u"Cover Subtitle") | |
self.show() | |
if __name__ == "__main__": | |
app = QtGui.QApplication(sys.argv) | |
ex = CoverSubtitle() | |
sys.exit(app.exec_()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment