Create a workspace so that chai will be visible by node REPL.
~/workspace/test/node-chai$ npm install chai
~/workspace/test/node-chai$ nodeImport Chai:
| from PySide import QtCore, QtGui | |
| from PySide.QtCore import Qt | |
| from PySide.QtGui import QWidget, QTableView, QVBoxLayout, QApplication | |
| def setup_consonants_vowels(): | |
| letters = 'abcdefghijklmnopqrstuvwxyz' | |
| vowels = set(['a','e','i','o','u','A','E','I','O','U']) | |
| consonants = set([c for c in (letters + letters.upper()) if not c in vowels]) | |
| return (consonants, vowels) |
| import sip | |
| sip.setapi('QString', 2) | |
| sip.setapi('QVariant', 2) | |
| from PyQt4 import QtCore, QtGui | |
| class TableModel(QtCore.QAbstractTableModel): | |
| """ | |
| A simple 5x4 table model to demonstrate the delegates |
| """ | |
| DataFrameTable | |
| ============== | |
| Quick and Dirty Qt app to view pandas DataFrames. Includes sorting and | |
| filterting. | |
| Based on qtpandas in pandas sandbox module, by Jev Kuznetsov | |
| Usage: |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Wed Jul 17 10:50:56 2013 | |
| @author: cmarshall | |
| """ | |
| import sip | |
| sip.setapi('QString', 1) | |
| sip.setapi('QVariant', 1) |