Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4634130

Browse files
committed
Added setwatchcursor() and setarrowcursor() functions
1 parent a1293da commit 4634130

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Mac/Lib/FrameWork.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ def windowbounds(width, height):
7878
next_window_x, next_window_y = next_window_x + 8, next_window_y + 20 # jvr
7979
return l, t, r, b
8080

81+
_watch = None
82+
def setwatchcursor():
83+
global _watch
84+
85+
if _watch == None:
86+
_watch = GetCursor(4).data
87+
SetCursor(_watch)
88+
89+
def setarrowcursor():
90+
SetCursor(qd.arrow)
8191

8292
class Application:
8393

0 commit comments

Comments
 (0)