Example #1
0
	def drawShapes(self, context):
		"""
		Draws the shapes in the map to the given context
		@type context: cairo.Context
		@param context: context to draw on
		"""
		for shape in self.__world.getShapes():
			graphics.drawShape(shape, context)
Example #2
0
 def do_expose_event(self, event):
     context = self.window.cairo_create()
     context.set_source(self.__checkerBoard)
     context.paint()
     size = self.window.get_size()
     graphics.drawGrid(context, 16, size[0], size[1])
     for shape in self.shapes:
         graphics.drawShape(shape, context, True)
	def drawShapes(self, context):
		"""
		Draws the shapes in the map to the given context
		@type context: cairo.Context
		@param context: context to draw on
		"""
		for shape in self.__world.getShapes():
			graphics.drawShape(shape, context)
Example #4
0
 def do_expose_event(self, event):
     context = self.window.cairo_create()
     context.set_source(self.__checkerBoard)
     context.paint()
     size = self.window.get_size()
     graphics.drawGrid(context, 16, size[0], size[1])
     for shape in self.shapes:
         graphics.drawShape(shape, context, True)
Example #5
0
	def draw(self, context):
		if self.__drawing == True:
			graphics.drawShape(self.__polygon, context, True)
		ShapeTool.draw(self, context)
Example #6
0
	def draw(self, context):
		if self.__drawing:
			graphics.drawShape(self.__circle, context, True)
		ShapeTool.draw(self, context)
Example #7
0
 def draw(self, context):
     if self.__drawing == True:
         graphics.drawShape(self.__polygon, context, True)
     ShapeTool.draw(self, context)
Example #8
0
 def draw(self, context):
     if self.__drawing:
         graphics.drawShape(self.__circle, context, True)
     ShapeTool.draw(self, context)