Skip to content

Instantly share code, notes, and snippets.

View merz9b's full-sized avatar
🏠
Working from home

Merz merz9b

🏠
Working from home
  • UNIVERSITY OF GLASGOW
  • Shanghai,CHINA
View GitHub Profile
@merz9b
merz9b / alchemical_model.py
Created November 2, 2018 03:10 — forked from harvimt/alchemical_model.py
SQLAlchemy to/from PyQt Adapters
#!/usr/bin/env python2
#-*- coding=utf-8 -*-
# © 2013 Mark Harviston, BSD License
from __future__ import absolute_import, unicode_literals, print_function
"""
Qt data models that bind to SQLAlchemy queries
"""
from PyQt4 import QtGui
from PyQt4.QtCore import QAbstractTableModel, QVariant, Qt
import logging # noqa