Skip to content

Instantly share code, notes, and snippets.

@mchubby
mchubby / thread2-abort.py
Last active February 20, 2017 01:02 — forked from jazzycamel/thread2.py
Simple example of threaded loop with abort handling (QMutex.tryLock) -- using standalone Qt.py (untested on PyQt4)
import sys
from random import uniform
import time
import threading
from itertools import count, islice
from vendor.Qt.Qt import QtCore, QtGui, QtWidgets
from vendor.Qt.Qt.QtWidgets import (
QApplication,
QLabel,
@mchubby
mchubby / ddc-ci-u2713hm.py
Last active July 7, 2023 04:12 — forked from Fr6jDJF/ddc-ci.py
Python script for adjusting the settings of my monitor, by using DDC/CI
#!/usr/bin/env python3
"""
Show and adjust display parameters on a Dell U2713HM monitor
Requirements:
- mentioned monitor (27' should also work) with DDC/CI setting on
- Windows Vista+ (dxva2.dll)
- Python 3