开发者

How use the google maps hand cursor in Python?

I want to use the google maps hand cursor in Python but I don't know how to do it. I've downloaded the cursor but I only get to use the hand open, I also have a event that "closes" the hand when clicked but I don't know how can I change the style cursor on it.

I say this because the google maps hand cursor has two style (the open and the closed hand).

If you don't know how to use the other style you can also tell me how can I create another cursor where the close hand is the default style. If I have that, I on开发者_运维问答ly change the cursor and it's done.

Thanks in advance :)


Use two cursors and change them on events as they need to be.


Did you try just changing the cursor, i.e:

myFrame.SetCursor(closedCursor)

In the event handler for mouse-down? Then for mouse-up change it back again. myFrame is your container wx.Frame, and I suppose you already know how to load a cursor from a file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜