[pygtk] Whole App Cursor Setting
pier carteri
pier.carteri at gmail.com
Sun Oct 30 17:40:05 WST 2005
Hi Loris,
this works for me
------------------------------8<----------------------------------------
import gtk
m_win = gtk.Window()
m_win.set_title("Test Window")
box = gtk.VBox()
m_win.add(box)
label = gtk.Label("Just a label....")
box.pack_start(label)
button = gtk.Button(" and a button")
box.pack_start(button)
m_win.connect("destroy", gtk.main_quit)
m_win.show_all()
gdk_win = gtk.gdk.Window(m_win.window,
gtk.gdk.screen_width(),
gtk.gdk.screen_height(),
gtk.gdk.WINDOW_CHILD,
0,
gtk.gdk.INPUT_ONLY)
gdk_cursor = gtk.gdk.Cursor(gtk.gdk.WATCH)
gdk_win.set_cursor(gdk_cursor)
gdk_win.show()
gtk.main()
------------------------------8<----------------------------------------
you can get more infos about gdk.window on
http://www.pygtk.org/pygtk2reference/gdk-class-reference.html
Regards
Pier
On 10/28/05, Loris Caren <loris at caren.demon.co.uk> wrote:
>
> I'm trying to put up a watch cursor while my app is busy. I've found
> how to do it for one widget, but I really want to freeze up the whole
> GUI. http://www.daa.com.au/pipermail/pygtk/2000-October/000435.html
> looks just what I'm after. However, it seems to have suffered from
> software ageing and half the calls don't seem to be present (in
> 2.6.2). Can anybody offer a current equivalent of his fragment?
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20051030/2cf5456f/attachment.htm
More information about the pygtk
mailing list