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

All Samples(20)  |  Call(11)  |  Derive(0)  |  Import(9)

src/f/l/Flappy-0.3.7/samples/keyboard.py   Flappy(Download)
import flappy
from flappy.display import Sprite
from flappy.events import Event, MouseEvent, KeyboardEvent
from flappy.ui import Keyboard
 

src/f/l/Flappy-0.3.7/samples/parasprites.py   Flappy(Download)
import flappy
from flappy.display import Sprite, Bitmap, BitmapData, Tilesheet
from flappy.events import Event, MouseEvent
from flappy.geom import Rectangle, Point
 

src/f/l/Flappy-0.3.7/samples/mouse.py   Flappy(Download)
import flappy
from flappy.display import Sprite
from flappy.events import Event, MouseEvent
from flappy.text import TextField, TextFieldAutoSize
from flappy.ui import Mouse

src/f/l/Flappy-0.3.7/samples/heroku_shaders.py   Flappy(Download)
#! /usr/bin/env python
# encoding: utf-8
 
import flappy
from flappy.events import Event, KeyboardEvent

src/f/l/Flappy-0.3.7/samples/cube_3d.py   Flappy(Download)
#! /usr/bin/env python
# encoding: utf-8
 
import flappy
from flappy.events import Event

src/f/l/Flappy-0.3.7/flappy/display/displayobject.py   Flappy(Download)
from flappy import _core
from flappy._core import _DisplayObject
from flappy.events import EventDispatcher, Event, EventPhase
from flappy.geom import Transform, ColorTransform, Matrix, Rectangle, Point
from flappy.display import Graphics, BitmapData
    def _on_added(self, obj, is_on_stage):
        if obj == self:
            evt = Event(Event.ADDED, True, False)
            evt.target = obj
            self.dispatchEvent(evt)
 
        if is_on_stage:
            evt = Event(Event.ADDED_TO_STAGE, False, False)
    def _on_removed(self, obj, was_on_stage):
        if obj == self:
            evt = Event(Event.REMOVED, True, False)
            evt.target = obj
            self.dispatchEvent(evt)
 
        if was_on_stage:
            evt = Event(Event.REMOVED_FROM_STAGE, False, False)

src/f/l/Flappy-0.3.7/flappy/display/stage.py   Flappy(Download)
import flappy
from flappy import _core
from flappy.events import Event, KeyboardEvent, MouseEvent, TouchEvent
from flappy.events import FocusEvent
from flappy.geom import Point
    def _render(self, send_enterframe):
        if not self.active:
            return
        if send_enterframe:
            self._broadcast(Event(Event.ENTER_FRAME))
        if self._invalid:
            self._invalid = False
            self._broadcast(Event(Event.RENDER))
    def _on_change(self, event):
        obj = self._find_by_id(event.id)
        if obj is not None:
            obj._fire_event(Event(Event.CHANGE))
 
    def _on_got_input_focus(self):
        evt = Event(FocusEvent.FOCUS_IN)

src/f/l/Flappy-0.3.7/flappy/display3d/scene3d.py   Flappy(Download)
 
 
from flappy import _core, _gl as gl
from flappy.events import Event
from flappy.display import DirectRenderer, Stage, BitmapData

src/f/l/Flappy-0.3.7/flappy/display/fps.py   Flappy(Download)
 
from flappy.text import TextField, TextFormat, TextFieldAutoSize
from flappy.events import Event
import time