mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Added setwatchcursor() and setarrowcursor() functions
This commit is contained in:
parent
a1293dae7b
commit
4634130aad
1 changed files with 10 additions and 0 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue