<font size=2 face="sans-serif">Hello All,</font>
<br>
<br><font size=2 face="sans-serif">I am writing a dialog which one of its
widget is a gtk.ComboBoxEntry ( let's assume widget in the example below
is its instance )</font>
<br><font size=2 face="sans-serif">When the user select one of the values
from the gtk.ComboBoxEntry I need to run some calculations that takes a
few seconds.</font>
<br><font size=2 face="sans-serif">In order to reflect calculation time
to the user I want to switch the mouse pointer to an hour glass and back
to arrow what it finish the calculation.</font>
<br>
<br><font size=2 face="sans-serif">I use the following code but it doesn't
seems to work in a deterministic way. From time to time it skips the last
line and keep the mouse pointer as an hour glass.</font>
<br>
<br><font size=2 face="sans-serif">        watch
= gtk.gdk.Cursor(gtk.gdk.WATCH)</font>
<br><font size=2 face="sans-serif">        widget.window.set_cursor(watch)</font>
<br>
<br><font size=2 face="sans-serif">        calculation
code</font>
<br>
<br><font size=2 face="sans-serif">        widget.window.set_cursor(None)</font>
<br>
<br><font size=2 face="sans-serif">I would appreciate your advice on the
right way to implement this.</font>
<br>
<br><font size=2 face="sans-serif">Thanks<br>
<br>
Ido</font>