Skip to content

Instantly share code, notes, and snippets.

Avatar

Samuel John samueljohn

View GitHub Profile
View HookHandler.py
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import BaseHTTPServer
import sys
import time
import urlparse
import json
@samueljohn
samueljohn / vtk-qt-demo.py
Created Jul 11, 2012 — forked from fmorency/gist:2596951
VTK Qt/PySide Python example
View vtk-qt-demo.py
"""
A simple example that uses the QVTKRenderWindowInteractor
class.
"""
try:
from PySide import QtCore, QtGui
except ImportError:
try:
from PyQt4 import QtCore, QtGui