Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/y/pyzza-0.2.15/examples/graph/draw.py   pyzza(Download)
from flash.text.engine import (TextElement, ElementFormat, FontDescription,
    TextBlock)
from graph import Colors
 
@package('graph')
        format.fontSize = 14
        el = TextElement(node.label or node.name, format)
        block = TextBlock()
        block.content = el
        tl = block.createTextLine(None, node.width*36)

src/p/y/pyzza-0.2.15/lib/layout/primitives.py   pyzza(Download)
from layout import Shape, Widget
from flash.text.engine import TextBlock, TextElement
 
@package('layout')
class Poly(Shape):
    def draw(self, width, height):
        if self.textline:
            self.removeChild(self.textline)
        tb = TextBlock()
        tb.content = TextElement(self.text, self.format)