add Sketch, Shape, Line, Circle placeholder classes

This commit is contained in:
Josh Holtrop committed 2011-03-24 16:44:42 -04:00
1 parent f776ba8570
commit 36c6f092fd
5 files changed
+21

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
class Circle(Shape):
pass
+3
View File
@@ -0,0 +1,3 @@
class Line(Shape):
pass
+3
View File
@@ -0,0 +1,3 @@
class Shape(object):
pass
+10
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)
+2
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)