【发布时间】:2016-07-05 13:13:02
【问题描述】:
是否有任何选项如何使用 pyglet 将屏幕的值 height 和 width 获取到变量中?我可以打印它,但不能提取这些值。
import pyglet
platform = pyglet.window.get_platform()
display = platform.get_default_display()
screen = display.get_screens()
->
>>> screen
[XlibScreen(display=<pyglet.canvas.xlib.XlibDisplay object at 0x7f4644cf0990>, x=0, y=0, width=1366, height=768, xinerama=0)]
>>>
有什么想法吗?提前致谢。
【问题讨论】:
标签: python-2.7 screen-resolution pyglet