add Sketch, Shape, Line, Circle placeholder classes
This commit is contained in:
parent
f776ba8570
commit
36c6f092fd
10
Sketch.py
Normal file
10
Sketch.py
Normal 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)
|
@ -4,6 +4,8 @@ import gtk.gtkgl
|
|||||||
|
|
||||||
from OpenGL.GL import *
|
from OpenGL.GL import *
|
||||||
|
|
||||||
|
from Sketch import Sketch
|
||||||
|
|
||||||
class Window:
|
class Window:
|
||||||
def __init__(self, title):
|
def __init__(self, title):
|
||||||
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
|
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user