summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-08-28 13:53:07 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-08-28 13:53:07 (GMT)
commit4634130aad361f3edd44c0f7594cf9497bc091bb (patch)
treede224457b46896fd2968d6ccc7911ed2bec2d591 /Mac/Lib
parenta1293dae7b9f26a37ee2739dc8b51db57ed428f5 (diff)
downloadcpython-4634130aad361f3edd44c0f7594cf9497bc091bb.zip
cpython-4634130aad361f3edd44c0f7594cf9497bc091bb.tar.gz
cpython-4634130aad361f3edd44c0f7594cf9497bc091bb.tar.bz2
Added setwatchcursor() and setarrowcursor() functions
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/FrameWork.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py
index 8663d1f..9610b61 100644
--- a/Mac/Lib/FrameWork.py
+++ b/Mac/Lib/FrameWork.py
@@ -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: