Mac OS X的Python的GUI管理器提示 [英] Mac OS X Python GUI Administrator Prompt
问题描述
我有一个使用wxPython的为它的GUI控件的OS X Python应用程序。我期待提示管理员权限的用户(类似于使用Objective-C的授权服务API)启动网络服务之前。
I have an OS X Python application that uses wxPython for it's GUI controls. I'm looking to prompt the user for administrative rights (akin to using the Authorization Service API in Objective-C) before starting a network service.
我已经发现的最接近库是鲍勃·伊波利托的授权库,但它是相当过时,有兼容性问题的雪豹(OS X 10.6.4 / Python的2.6.4)。
The closest library I have found is Bob Ippolito's Authorization library but it is fairly outdated and has compatibility issues with Snow Leopard (OS X 10.6.4 / Python 2.6.4).
我的解决方法是创建一个运行具有管理权限的Python应用程序的Objective-C的发射但感觉还算缺憾。
My workaround would be to create an Objective-C launcher that runs the python application with administrative rights but that feels fairly kludgy.
感谢您的帮助!
推荐答案
您可以通过使用的鸭嘴兽。
这篇关于Mac OS X的Python的GUI管理器提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!