python - function return value from singleshot call -


i new python. have created ui file in qt designer , using in python. in order let gui update, using singleshot;

self.labletop.settext('starting program... please wait') self.texteditinfo.append('mem programming started') qtcore.qtimer.singleshot(1000, lambda: self.programmem()) 

where programmem function returns 0 on success. there way can return value of function using above call. right way let gui updated before calls function? many thanks.

ok, found answer. no need singleshot. trick call

qtgui.qapplication.processevents() 

for update.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -