Skip to content

Instantly share code, notes, and snippets.

@redstoneleo
Created June 25, 2019 14:00
Show Gist options
  • Save redstoneleo/fd260e89701912bb22b0533224d041fe to your computer and use it in GitHub Desktop.
Save redstoneleo/fd260e89701912bb22b0533224d041fe to your computer and use it in GitHub Desktop.
used to test Nuitka issues
import sys
from PIL import ImageGrab
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
app = QApplication(sys.argv)
btn = QPushButton()
btn.clicked.connect(lambda: ImageGrab.grab(bbox=(0, 0, 900, 900)))
btn.show()
app.exec_()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment