Skip to content

Instantly share code, notes, and snippets.

@brickgao
Created December 2, 2015 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brickgao/9b2ab9138777c6efa49c to your computer and use it in GitHub Desktop.
Save brickgao/9b2ab9138777c6efa49c to your computer and use it in GitHub Desktop.
An empty window to cover the subtitle.
#!/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