pywin32: how do I get a pyDEVMODE object?

喜你入骨 提交于 2021-01-28 14:07:09

问题


How can I create a PyDEVMODE object without just having it as a return from a function call like win32api.EnumDisplaySettingsEx(name, 0)?


回答1:


It's defined in pywintypes.

>>> import pywintypes
>>> pywintypes.DEVMODEType()
<PyDEVMODE object at 0x00F38E90>

I'm curious as to what you are going to use it for?



来源:https://stackoverflow.com/questions/3857884/pywin32-how-do-i-get-a-pydevmode-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!