def test(): import gl gl.foreground() gl.winopen('test watchcursor') defwatch(1) gl.setcursor(1, 0, 0) import time time.sleep(10)
#! /usr/bin/env python
def ready(self): gl.winset(self.form.window) gl.setcursor(ARROW, 0, 0)
def busy(self): gl.winset(self.form.window) gl.setcursor(WATCH, 0, 0)
def setwatch(self): gl.winset(self.form.window) gl.setcursor(WATCH, 0, 0) gl.winset(self.window) gl.setcursor(WATCH, 0, 0)
def setarrow(self): gl.winset(self.form.window) gl.setcursor(ARROW, 0, 0) gl.winset(self.window) gl.setcursor(ARROW, 0, 0)
# Define a 16x16 cursor looking like a watch