From: Jack Jansen Date: Wed, 28 Aug 1996 13:53:07 +0000 (+0000) Subject: Added setwatchcursor() and setarrowcursor() functions X-Git-Tag: v1.4~343 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4634130aad361f3edd44c0f7594cf9497bc091bb;p=thirdparty%2FPython%2Fcpython.git Added setwatchcursor() and setarrowcursor() functions --- diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index 8663d1f699d5..9610b61fc014 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: