Skip to content

Instantly share code, notes, and snippets.

View maxbechtold's full-sized avatar

Max Bechtold maxbechtold

View GitHub Profile
@maxbechtold
maxbechtold / overlay.py
Created April 18, 2020 10:49
Python Overlay
# https://stackoverflow.com/questions/51960766/python-text-overlay-on-top-of-everything-else#comment90884394_51960766
# TODO This is not enough, perhaps https://github.com/AzoRAI/DX11OverlayExample will do it?
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QGraphicsDropShadowEffect, QVBoxLayout, QHBoxLayout
import sys
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QColor, QPicture, QPainter, QPen
app = QApplication(sys.argv) # Our application
window = QWidget() # The window we'll be using.
package maxbe.common;
import java.util.function.Function;
/**
* Taken and extended from http://codingjunkie.net/functional-iterface-exceptions/
*
* @author Max Bechtold
*/
@FunctionalInterface