]> granicus.if.org Git - python/commitdiff
Added setwatchcursor() and setarrowcursor() functions
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 28 Aug 1996 13:53:07 +0000 (13:53 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 28 Aug 1996 13:53:07 +0000 (13:53 +0000)
Mac/Lib/FrameWork.py

index 8663d1f699d522d3d4ce85186f24de3168d17c26..9610b61fc0144e4d3ab5b8438fc09e0de3f99a8c 100644 (file)
@@ -78,6 +78,16 @@ def windowbounds(width, height):
        next_window_x, next_window_y = next_window_x + 8, next_window_y + 20    # jvr
        return l, t, r, b
 
+_watch = None
+def setwatchcursor():
+       global _watch
+       
+       if _watch == None:
+               _watch = GetCursor(4).data
+       SetCursor(_watch)
+       
+def setarrowcursor():
+       SetCursor(qd.arrow)
 
 class Application: