add Sketch, Shape, Line, Circle placeholder classes

This commit is contained in:
Josh Holtrop 2011-03-24 16:44:42 -04:00
parent f776ba8570
commit 36c6f092fd
5 changed files with 21 additions and 0 deletions

3
Circle.py Normal file
View File

@ -0,0 +1,3 @@
class Circle(Shape):
pass

3
Line.py Normal file
View File

@ -0,0 +1,3 @@
class Line(Shape):
pass

3
Shape.py Normal file
View File

@ -0,0 +1,3 @@
class Shape(object):
pass

10
Sketch.py Normal file
View File

@ -0,0 +1,10 @@
class Sketch(object):
def __init__(self):
self.shapes = []
def __iter__(self):
return self.shapes.__iter__()
def __contains__(self, item):
return self.shapes.__contains__(item)

View File

@ -4,6 +4,8 @@ import gtk.gtkgl
from OpenGL.GL import *
from Sketch import Sketch
class Window:
def __init__(self, title):
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)