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

All Samples(11)  |  Call(1)  |  Derive(6)  |  Import(4)

src/p/y/pyzza-0.2.15/examples/arkanoid/main.py   pyzza(Download)
from flash.display import Sprite
from flash.display import StageAlign, StageScaleMode
from flash.events import Event, KeyboardEvent
from flash.text import TextField
from flash.utils import getTimer
class Ball(Sprite):
    def __init__(self, field):
        self.field = field
        self.graphics.beginFill(0xFF0000)
        self.graphics.drawCircle(-field.BALLRADIUS/2, -field.BALLRADIUS/2,
class Racket(Sprite):
    def __init__(self, field):
        self.racket_width = 80
        self.field = field
        self.pos = 0.5
class Brick(Sprite):
    def __init__(self, field, brickdef):
        m = Matrix()
        fullw = field.BRICKWIDTH
        fullh = field.BRICKHEIGHT

src/p/y/pyzza-0.2.15/examples/debuginfo/main.py   pyzza(Download)
from string import repr
from flash.text import TextField
from flash.display import Sprite, StageAlign, StageScaleMode
from logging import Log, Console, Evaluator
 
class Main(Sprite):
    def __init__(self):
        self.stage.align = StageAlign.TOP_LEFT
        self.stage.scaleMode = StageScaleMode.NO_SCALE
        self.tf = TextField()

src/p/y/pyzza-0.2.15/examples/graph/main.py   pyzza(Download)
from flash.display import Sprite
from flash.net import URLLoader, URLRequest
from flash.events import Event
from graph import Parser, Drawer
 
@package('graph')
class Main(Sprite):

src/p/y/pyzza-0.2.15/test/testpy.py   pyzza(Download)
from flash.display import DisplayObject, Sprite
from flash.text import TextField
from flash.text import TextFormat
from flash.display import StageAlign
from flash.events import Event, IEventDispatcher
        self.assertTrue(isinstance({}, Object))
        self.assertTrue(isinstance(Dictionary(), Dictionary))
        spr = Sprite()
        self.assertTrue(isinstance(spr, Sprite))
        self.assertTrue(isinstance(spr, DisplayObject))
class Main(Sprite):
 
    def __init__(self):
        super().__init__()
        self.init()