Ejemplo n.º 1
0
 def draw(self):
     '''Draw the current image camera'''
     if self._texture:
         pymt.set_color(*self.color)
         pymt.drawTexturedRectangle(self._texture, pos=self.pos, size=self.size)
     else:
         pymt.drawRectangle(pos=self.pos, size=self.size)
         pymt.drawLabel('No Camera :(', pos=(self.width/2, self.height/2))
Ejemplo n.º 2
0
 def draw(self):
     if self.ctx.mode == 'layout':
         set_color(0, 0.7, 0)
         drawRectangle(pos=(-10,-10),size=(self.width+20,self.height+20))
         drawLabel(label=str(self.parent.groupid), pos=(-12, -10),
                   color=(1, 1, 1), center=False)
     elif self.ctx.mode == 'edit':
         set_color(0.7, 0.7, 0)
         drawRectangle(pos=(-10,-10),size=(self.width+20,self.height+20))