Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/d/i/digsby-HEAD/digsby/src/common/filetransfer.py   digsby(Download)
    _xfer_display_strings = {
        # transfer state       # xfer, "direction" string
        states.TRANSFERRING:       lambda x: _('{completed} of {size} ({speed}/sec) -- {time} remain').format(completed=util.nicebytecount(x.completed), size=util.nicebytecount(x.size), speed=util.nicebytecount(x.bytes_per_sec), time=util.nicetimecount(x.ETA)),
        states.FINISHED:           lambda x: (_('Received from {name}') if x.direction == 'incoming' else _('Sent to {name}')).format(name=x.buddy.name),
        states.CONNECTING:         lambda x: _('Connecting to {name}...').format(name=x.buddy.name),

src/d/i/digsby-HEAD/digsby/src/AccountManager.py   digsby(Download)
from util.observe import ObservableList, Observable
from common import pref, StateMixin, UpdateMixin, fire
from util import Storage, traceguard, call_later, nicetimecount
from util.primitives.funcs import get
from util.primitives.structures import oset
 
            rem_time = self.reconnect_timers[acct].remaining
            return reconnect % nicetimecount(rem_time)
 
        elif acct.offline_reason == reconnect:
            if isinstance(acct, UpdateMixin):
                return reconnect % nicetimecount(acct.timer.remaining)

src/d/i/digsby-HEAD/digsby/src/plugins/digsby_updater/UpdateProgress.py   digsby(Download)
        self.xfer_display_strings[self.states.CHECKING_FILES] = \
        self.xfer_display_strings[self.states.TRANSFERRING] = \
            lambda x, d=None: _('%s: %s of %s -- %s remain') % (x.state, x.completed, x.size, util.nicetimecount(x.ETA))
 
        log.info("UpdateProgress setup")