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]