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

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/c/o/cocy-0.1.12/cocy/upnp/adapters/audio_video.py   cocy(Download)
    def SetVolume(self, **kwargs):
        self.fire(Log(logging.DEBUG, 'SetVolume to '
                      + kwargs["DesiredVolume"]), "logger")
        self.fire(Event.create("SetVolume", 
                               int(kwargs["DesiredVolume"]) / 100.0),
    def SetAVTransportURI(self, **kwargs):
        self.fire(Log(logging.DEBUG, 'AV Transport URI set to '
                      + kwargs["CurrentURI"]), "logger")
        self.fire(Event.create("Load", kwargs["CurrentURI"], 
                               kwargs["CurrentURIMetaData"]),
    def SetNextAVTransportURI(self, **kwargs):
        self.fire(Log(logging.DEBUG, 'Next AV Transport URI set to '
                      + kwargs["NextURI"]), "logger")
        self.fire(Event.create("PrepareNext", kwargs["NextURI"], 
                               kwargs["NextURIMetaData"]),
    def Play(self, **kwargs):
        self.fire(Log(logging.DEBUG, "Play called"), "logger")
        self.fire(Event.create("Play"),
                  self.parent.provider.channel)
        return []
 
    @upnp_service
    def Pause(self, **kwargs):
        self.fire(Log(logging.DEBUG, "Pause called"), "logger")
        self.fire(Event.create("Pause"),

src/c/i/circuits-minpor-0.3/circuits_minpor/portlets/servertime.py   circuits-minpor(Download)
    def _on_off_changed(self, value, **kwargs):
        if value and self._timer is None:
            evt = Event.create("TimeOver")
            evt.channels = (self.channel,)
            self._timer = Timer(1, evt, persist=True).register(self)