I placed within the main GtkWindow a GtkEntry widget to show the step position (what is already done) within a running function. However it shows only the fist and the last step position. And I could not figure out how to write the concrete code.
The program structure is the following :
ui = Builder(filename =“D:\WORK\main.glade](//WORK//main.glade)”)
some code lines
signal_connect(x ->; run_job(), ui[“run”], “clicked”) # function where the GtkEntry widget is
some more code line
The run_job function looks like:
do step 1
set_gtk_property!(ui[“verbose_info”], :text, “run_job(): step 1 done”);
do step 2
set_gtk_property!(ui[“verbose_info”], :text, “run_job(): step 2 done”);
do step n
set_gtk_property!(ui[“verbose_info”], :text, “run_job(): step n done”);
Whenever the function run_job() starts I get the message within the verboase_info
GtkEntry: “run_job(): step 1 done” and when the function comes to the end “run_job(): step n done”.
No steps in between are displayed.
Therefore my question is how to manage that all steps are shown during the run of run_job().
At which place in my code I have to insert the necessary lines?
Thank you for any advice