[pygtk] Pygtk toggle hide show with time interval

2011-05-06 Thread pahnin sd
Hi, I am very new to pygtk, please don't mind if my question is too simple or stupid. I am still learning pygtk and before I ask my doubt here is my code import gtk, pygtk pygtk.require('2.0') import time class test(): def __init__(self): self.window=gtk.Window(gtk.WINDOW_TOPLEVEL)

Re: [pygtk] Pygtk toggle hide show with time interval

2011-05-06 Thread craf
hi. import gtk, pygtk pygtk.require('2.0') import time class test(): def __init__(self): self.window=gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.connect=('delete_event',lambda wid, we: gtk.main_quit()) self.window.show() gtk.gdk.flush() print show time.sleep(2)

Re: [pygtk] Pygtk toggle hide show with time interval

2011-05-06 Thread pahnin sd
On Sat, May 7, 2011 at 2:02 AM, craf pyclut...@gmail.com wrote: hi. import gtk, pygtk pygtk.require('2.0') import time class test(): def __init__(self): self.window=gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.connect=('delete_event',lambda wid, we: gtk.main_quit())

Re: [pygtk] Pygtk toggle hide show with time interval

2011-05-06 Thread John Stowers
Hey thats working, Thanx and can you please explain me why shall I use this flush. I just read that gtk.gdk.flush() creates output and wait until sll requests are processed what does that actually mean Dont write code like this. 1) time.sleep() blocks the

Re: [pygtk] Pygtk toggle hide show with time interval

2011-05-06 Thread pahnin sd
On Sat, May 7, 2011 at 3:20 AM, John Stowers john.stowers.li...@gmail.comwrote: Hey thats working, Thanx and can you please explain me why shall I use this flush. I just read that gtk.gdk.flush() creates output and wait until sll requests are processed what does that actually