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/charts/main.py   pyzza(Download)
from charts import LeftVerticalAxis, BottomHorizontalAxis, LineChart
from charts import RectangleData
from layout import Layout, CenteredLine, TopLevel, State
from flash.text.engine import ElementFormat
 
    def __init__(self):
        fmt = ElementFormat(None, 14, 0x000000)
        data = RectangleData(testdata)
        self.layout = Layout([
            LineChart(data, Style(), 'chart', {

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')
    def label_node(self, node):
        font = FontDescription("Arial")
        format = ElementFormat(font)
        format.fontSize = 14
        el = TextElement(node.label or node.name, format)