pluto mars
2014-10-20 19:46:33 UTC
Hi All,
I want to make a GUI in which from start till finish a function is called
continuously with a certain interval. For example the function will read
some value from a text control, perform some calculation, update an image
on a panel, and update a value on a text control. This function for the
rest does not need to wait for any other function. I tried to achieve this
by using wx.Timer. However, since my function is not fast, I see that when
the function is being called that my GUI get non responsive. I have made an
example program and put it as attachement. In the example I just add a
time.sleep and I see the same effect. When my sleep time is small, I see
that the program is responsive with no problem. The problem appears when
the function takes a bit of time to finish. How can I solve this problem ?
I don care that the function take some time, but I dont want it to block my
GUI.
Thanks in advance for helping.
Pluto.
I want to make a GUI in which from start till finish a function is called
continuously with a certain interval. For example the function will read
some value from a text control, perform some calculation, update an image
on a panel, and update a value on a text control. This function for the
rest does not need to wait for any other function. I tried to achieve this
by using wx.Timer. However, since my function is not fast, I see that when
the function is being called that my GUI get non responsive. I have made an
example program and put it as attachement. In the example I just add a
time.sleep and I see the same effect. When my sleep time is small, I see
that the program is responsive with no problem. The problem appears when
the function takes a bit of time to finish. How can I solve this problem ?
I don care that the function take some time, but I dont want it to block my
GUI.
Thanks in advance for helping.
Pluto.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.