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

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -