[pygtk] raise reminder window

Ryan Krauss ryanlists at gmail.com
Tue Mar 28 23:13:56 WST 2006


I am trying to learn pygtk and use it to write an application that
will pop up a reminder window for me every 5, 10, or 15 minutes or
whatever.  I would like this window to raise itself to the to the
center of the current workspace so that it is visible.  I am having
trouble learning how to do this.  I see that gtk.gdk.Window has a
raise method, but I am trying to raise the top level gtk.Window.  It
would also be o.k. to create a dialog and pop it up each time, but my
first attempt at this seemd to have threading issues.

Attached is my modification of an example from Beginning Python about
pygtk and threading.  My modification is lines 75-93.  They basically
use a seperate thread to do the wait timer that I would need, but the
dialog doesn't work very well.

Thanks,

Ryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reminder.py
Type: text/x-python
Size: 3660 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060328/3d26edf8/reminder.py


More information about the pygtk mailing list