On Tue, Jun 18, 2002 at 03:10:14PM -0400, Steve McClure wrote: > 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) >
I've added a FAQ for this: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq05.006.htp I've also added an item on GtkEntry's peculiar GdkWindow setup: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq14.003.htp Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
