logo       

Non blocking dialog window: msg#00133

gnome.gtk+.python

Subject: Non blocking dialog window

Hello,

I'm trying this in order to get a non blocking message dialog:

. info = gtk.MessageDialog(
. parent = None,
. type = gtk.MESSAGE_INFO,
. message_format = _('Updating the list of the nodes'))
. info.show()
. do_hairy_computation()
. info.destroy()

But it doesn't seem to work since I cannot see the dialog appearing.
As I understand the documentation in:

http://www.pygtk.org/pygtk2reference/class-gtkdialog.html
When one use run(), the dialog is displayed in blocking mode so I inferred
that when one use show() the window is displayed in non blocking mode.

I suspected this might because the computation is finished too quickly
so I added some sleep calls but without success.

Any hints ?

--
(°> Nicolas Évrard
/ ) Liège - Belgique
^^
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise