Example #1
0
 def __init__(self, parent, name, title, data):
     VBoxNode.__init__(self)
     self.padding = (0, 0, 0, 0)
     self.expand_to_fill = False
     self.name = name
     self.parent = parent
     self.data = data
     self.children = []
     self.content = TextRectangle(title)
     self.content.set_fill_color(0.83137254901960789, 0.92941176470588238, 0.99215686274509807, 1)
     self.items.append(self.content)
     self.extra_bottom_space = 0
Example #2
0
 def __init__(self, parent, name, title, data):
     VBoxNode.__init__(self)
     self.padding = (0, 0, 0, 0)
     self.expand_to_fill = False
     self.name = name
     self.parent = parent
     self.data = data
     self.children = []
     self.content = TextRectangle(title)
     self.content.set_border_color(1, 1, 1, 0)
     self.content.set_fill_color(1, 1, 1, 0)
     self.items.append(self.content)
     self.extra_bottom_space = 0
Example #3
0
    def do_render(self, c):
        def leftmost(node):
            x = node.pos[0]
            for ch in node.children:
                x = min(x, leftmost(ch))
            return x

        self.apply_attributes(c)
        x, y = self.pos
        w, h = self.gsize
        xx = leftmost(self)
        VBoxNode.do_render(self, c)
        c.save()
        c.set_source_rgba(1, 0, 0, 1)
        c.set_source_rgba(0.7, 0.7, 0.7, 1)
        c.set_dash([2.0, 2.0], 0)
        c.rectangle(xx + 0.5, y + 0.5, w, h)
        c.stroke()
        c.restore()
 def do_render(self, c):
     def leftmost(node):
         x = node.pos[0]
         for ch in node.children:
             x = min(x, leftmost(ch))
         return x
     
     self.apply_attributes(c)
     x, y = self.pos
     w, h = self.gsize
     xx = leftmost(self)
     VBoxNode.do_render(self, c)
     c.save()
     c.set_source_rgba(1, 0, 0, 1)                           
     c.set_source_rgba(0.7, 0.7, 0.7, 1)
     c.set_dash([2.0, 2.0], 0)
     c.rectangle(xx+0.5, y+0.5, w, h)
     c.stroke()
     c.restore()
Example #5
0
 def do_render(self, c):
     VBoxNode.do_render(self, c)
     self.render_shadow(c)
Example #6
0
 def render(self, c):
     VBoxNode.render(self, c)
     self.render_shadow(c)
 def do_render(self, c):
     VBoxNode.do_render(self, c)
     self.render_shadow(c)