开发者

PyGTK: how to make a clipboard monitor?

开发者 https://www.devze.com 2023-01-02 16:22 出处:网络
How can I make a simple clipboard monitor in Python using the PyGTK GUI? I found gtk.clipboa开发者_StackOverflow社区rd class and but I couldn\'t find any solution to get the \"signals\" to trigger th

How can I make a simple clipboard monitor in Python using the PyGTK GUI?

I found gtk.clipboa开发者_StackOverflow社区rd class and but I couldn't find any solution to get the "signals" to trigger the event when the clipboard content has changed.

Any ideas?


Without a proper notification API, such as WM_DrawClipboard messages, you would probably have to resort to a polling loop. And then you will cause major conflicts with other apps that are trying to use this shared resource.
Do not resort to a polling loop.

0

精彩评论

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

关注公众号