如何通过Python生成键盘按键事件以控制PP演示? [英] How to generate keyboard keypress events through Python to control PP presentation?

查看:77
本文介绍了如何通过Python生成键盘按键事件以控制PP演示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以编程方式控制powerpoint/pdf演示文稿(4个方向的击键至少需要工作才能转到上一张和下一张幻灯片).

I need to programmatically control powerpoint/pdf presentations (the 4 direction keystrokes need to work at the minimum to go to the previous and next slides).

我可以在OS X上使用Python使用哪些库/模块/框架?

What library/module/framework can I use with Python to do this on OS X?

我已经在Windows和C#(或OS X和Quartz)中进行了很多讨论,但是对于Python没什么特别的讨论.跨平台的库/框架会更好.

I've seen a lot of discussion on doing this in Windows and C# (or OS X and Quartz), but nothing particularly with Python. A cross-platform library / framework would be even better.

总体而言,我想在OS X上使用Python以编程方式控制我的演示文稿(作为一个业余项目的一部分,在我自己的简短演示文稿中也可能有用).

Overall, I would like to programmatically control my presentation with Python on OS X (as part of a hobby project, and probably also useful in my own short presentations).

推荐答案

您可以尝试 PyQt wxPython

此处是有关如何使用PyQt处理按键的链接-

Here is a link for how to handle key press with PyQt - http://www.saltycrane.com/blog/2008/01/how-to-capture-tab-key-press-event-with/

和wxPython- http://www.wxpython.org/docs/api/wx.KeyEvent-class.html http://zetcode.com/wxpython/events/

and for wxPython - http://www.wxpython.org/docs/api/wx.KeyEvent-class.html and http://zetcode.com/wxpython/events/

这篇关于如何通过Python生成键盘按键事件以控制PP演示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆