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

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

src/p/y/Pythagora-HEAD/models/state.py   Pythagora(Download)
    '''
    _default_state = {
            'progress':     mpdlibrary.Time(0),
            'playState':    '',
            'volume':       0,
    def _setState(self, item, value):
        if item == 'progress':
            if not isinstance(value, mpdlibrary.Time):
                value = mpdlibrary.Time(value)
        # Integer values.

src/p/y/Pythagora-HEAD/MainWindow.py   Pythagora(Download)
        timestamps and puts them in place.
        '''
        songTime = mpdlibrary.Time(self.progress.maximum())
        if songTime <= 1:
            self.progress.setValue(0)

src/p/y/Pythagora-HEAD/tests/test_mpdlibrary.py   Pythagora(Download)
def test_time():
    time = mpdlibrary.Time('6234', library)
    assert time == int('6234')
    assert time.human == "1:43:54"
    assert time.hours == 1