Skip to content

Instantly share code, notes, and snippets.

View samueljohn's full-sized avatar

Samuel John samueljohn

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