On Tue, 2002-06-18 at 14:41, Thomas Guettler wrote: > Hi! > > How can I change the cursor to an hourglass?
def busyCursor(self, w, state):
if type(w) == types.StringType:
win = self.wtree.get_widget(w).get_window()
else:
win = w.get_window()
if state:
c = gtk.cursor_new(GDK.WATCH)
else:
c = gtk.cursor_new(GDK.LEFT_PTR)
win.set_cursor(c)
drainEventQueue()
def drainEventQueue(block = gtk.FALSE):
while gtk.events_pending():
gtk.mainiteration(block)
You might want to recurse down the window tree since the above code will
only set the cursor on the specific window given. e.g. if the widget is
the dialog, then if there is a GtkEntry in the dialog, moving the cursor
over that will will show the I-bar.
>
> thomas
>
> --
> Thomas Guettler <[EMAIL PROTECTED]>
> http://www.thomas-guettler.de
>
> _______________________________________________
> pygtk mailing list [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
--
Steve McClure 430 10th St NW
Racemi Suite N-210
http://www.racemi.com Atlanta, GA 30318
[EMAIL PROTECTED] voice/fax: 404-892-5850
signature.asc
Description: This is a digitally signed message part
