Skip to content

Instantly share code, notes, and snippets.

View ImLucasBrown's full-sized avatar
👨‍💻
Drinking water

ImLucasBrown

👨‍💻
Drinking water
  • Shutterstock
  • Texas
View GitHub Profile
@MacHu-GWU
MacHu-GWU / inspect_mate.py
Created May 9, 2017 20:34
``inspect_mate`` provides more methods to get information about class attribute than the standard library ``inspect``.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
``inspect_mate`` provides more methods to get information about class attribute
than the standard library ``inspect``.
This module is Python2/3 compatible, tested under Py2.7, 3.3, 3.4, 3.5, 3.6.
Includes tester function to check:
@blink1073
blink1073 / qt_key_shortcut_editor.py
Last active March 4, 2020 16:57
Qt Keyboard Shortcut Editor
import sys
from PyQt4 import QtGui, QtCore
import warnings
class KeySequenceEdit(QtGui.QLineEdit):
"""
This class is mainly inspired by
http://stackoverflow.com/a/6665017