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
Post a Comment