Add job.setprogress to Python API.

This commit is contained in:
Teo Mrnjavac 2014-07-22 18:05:58 +02:00
parent c6c2c67560
commit 2636a1273f
4 changed files with 21 additions and 1 deletions

View file

@ -31,4 +31,12 @@ PythonJobInterface::PythonJobInterface( const Calamares::PythonJob* parent )
configuration = CalamaresPython::variantMapToPyDict( m_parent->m_configurationMap );
}
void
PythonJobInterface::setprogress( double progress )
{
if ( progress >= 0 && progress <= 1 )
m_parent->emitProgress( progress );
}
}