First of all, pygnome-0.2.3 is a bit old, and was for a version of GNOME
that doesn't work with gtk+-1.1.6. The current version in CVS is up to
date with current CVS gnome. The gnome-python snapshot is more recent
than pygnome-0.2.3. If you still want pygnome-0.2.3, it is available from
ftp://ftp.daa.com.au/pub/james/python/old/ (where I put old versions).
If people want, I can make another pygnome snapshot. If you don't mind
patching automake, you can grab the gnome-python module from CVS, or get a
cvs snapshot from ftp.jimpick.com.
As for the dialog problem, for programs that use an event loop, you almost
never want to put a sleep into it, since it suspends ALL operation. If
you want a dialog to close after two seconds, I recommend using
timeout_add to set up a callback that destroys the dialog and runs two
seconds into the future.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Thu, 10 Dec 1998 [EMAIL PROTECTED] wrote:
> Hi, all
>
> I just grab the new version of pygtk-0.5.8 but I dind't saw the
> pygnome-0.2.3 in the ftp site. Does the 0.2.3 version works with the
> new pygtk or do I have to use the gnome-python-SNAP-981206.tar.gz ???
>
> Imagine that you are closing down a programm and you wan't to show the
> user a Dialog before you close you application.
> I thought that all I had to do is to put a time.sleep(2) after
> the instancing of the dialog form the computer to remain idle showing a
> dialog 2 seconds.
> But it doesn't work that way, I first wait's 2 seg an then shows the
> dialog !
>
> Here is an example:
>
> -------------------cut here-----------------------------------------------
> #!/usr/bin/env python
> from Gtkinter import *
> import time
>
> class Example(GtkWindow):
>
> def shutdown(self,*args):
> self.dialog = GtkDialog()
> self.dialog.set_title(""" Killing the recognizer deamon""")
> self.label = GtkLabel(""" Killing the recognizer deamon""")
> self.dialog.action_area.pack_start(self.label)
> self.label.show()
> self.dialog.show()
> time.sleep(2)
> mainquit()
>
> def __init__(self):
> GtkWindow.__init__(self)
> self.connect('delete_event', self.shutdown)
> self.button = GtkButton("Shut down program")
> self.button.connect("clicked",self.shutdown)
> self.add(self.button)
> self.button.show()
>
> if __name__ == '__main__':
> example= Example()
> example.show()
> mainloop()
> -------------------cut here----------------------------------------------
>
> I'm I doing something wrong ?????????????
>
> THAKS
>
> P.S.: James you're doing an amazing job !!!!!!!!!!!!!
>
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]